Update initializer.rb

This commit is contained in:
Brusk Awat 2023-03-01 02:44:45 +03:00 committed by GitHub
parent ad7696ef47
commit 17887dc81d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ module Outboxable
specversion: '1.0',
type: resource.routing_key,
datacontenttype: 'application/json',
data: @resource.payload
data: resource.payload
}.to_json
end
end
@ -33,4 +33,4 @@ Outboxable.configure do |config|
config.rabbitmq_password = ENV.fetch('RABBITMQ__PASSWORD')
config.rabbitmq_vhost = ENV.fetch('RABBITMQ__VHOST')
config.rabbitmq_event_bus_exchange = ENV.fetch('EVENTBUS__EXCHANGE_NAME')
end
end