We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8474e8d commit 9139c9fCopy full SHA for 9139c9f
src/allocation/service_layer/handlers.py
@@ -41,10 +41,7 @@ def allocate(
41
def reallocate(
42
event: events.Deallocated, uow: unit_of_work.AbstractUnitOfWork
43
):
44
- with uow:
45
- product = uow.products.get(sku=event.sku)
46
- product.events.append(commands.Allocate(**asdict(event)))
47
- uow.commit()
+ allocate(commands.Allocate(**asdict(event)), uow=uow)
48
49
50
def change_batch_quantity(
0 commit comments