Skip to content

Commit 2910812

Browse files
committed
modify uow to pass self to messagebus [uow_passes_self_to_messagebus]
1 parent 5fec3af commit 2910812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/allocation/unit_of_work.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def publish_events(self):
2626
for product in self.products.seen:
2727
while product.events:
2828
event = product.events.pop(0)
29-
messagebus.handle(event)
29+
messagebus.handle(event, uow=self)
3030

3131
@abc.abstractmethod
3232
def _commit(self):

0 commit comments

Comments
 (0)