Skip to content

Commit f832abe

Browse files
committed
modify uow to pass self to messagebus [halfway_point]
1 parent 9ba99ac commit f832abe

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
@@ -19,7 +19,7 @@ def __exit__(self, *args):
1919
def commit(self):
2020
self._commit()
2121
for obj in self.products.seen:
22-
messagebus.handle(obj.events)
22+
messagebus.handle(obj.events, uow=self)
2323

2424
@abc.abstractmethod
2525
def _commit(self):

0 commit comments

Comments
 (0)