refactor: remove metadata argument from outbox creation.

This commit is contained in:
Muhammad Nawzad 2026-01-18 10:04:30 +03:00
parent 4a6952f767
commit 46f56a4a08
No known key found for this signature in database
GPG Key ID: B954B6AAE33940B2

View File

@ -27,12 +27,7 @@ module Outboxable
outboxes.new( outboxes.new(
routing_key:, routing_key:,
exchange: Outboxable.configuration.rabbitmq_exchange_name, exchange: Outboxable.configuration.rabbitmq_exchange_name,
payload: as_json, payload: as_json
metadata: if respond_to?(:metadata_for_outbox)
metadata_for_outbox
else
{}
end
) )
end end