diff --git a/lib/templates/initializer.rb b/lib/templates/initializer.rb index 9abde06..d6fb457 100644 --- a/lib/templates/initializer.rb +++ b/lib/templates/initializer.rb @@ -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 \ No newline at end of file +end