lib/dirty_pipeline/pg/queue.rb in dirty_pipeline-0.8.3 vs lib/dirty_pipeline/pg/queue.rb in dirty_pipeline-0.9.0
- old
+ new
@@ -137,10 +137,12 @@
JSON.dump(
"evid" => event.id,
"txid" => event.tx_id,
"transit" => event.transition,
"args" => event.args,
+ "source" => event.source,
+ "destination" => event.destination
)
end
def unpack(packed_event)
return unless packed_event
@@ -149,9 +151,11 @@
data: {
"uuid" => unpacked_event["evid"],
"transaction_uuid" => unpacked_event["txid"],
"transition" => unpacked_event["transit"],
"args" => unpacked_event["args"],
+ "source" => unpacked_event["source"],
+ "destination" => unpacked_event["destination"]
}
)
end
def events_queue_key