mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-22 22:06:47 +00:00
refactor: remove metadata argument from outbox creation.
This commit is contained in:
parent
4a6952f767
commit
46f56a4a08
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user