We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 286f106 commit 257f29fCopy full SHA for 257f29f
src/allocation/service_layer/handlers.py
@@ -43,10 +43,7 @@ def reallocate(
43
event: events.Deallocated,
44
uow: unit_of_work.AbstractUnitOfWork,
45
):
46
- with uow:
47
- product = uow.products.get(sku=event.sku)
48
- product.events.append(commands.Allocate(**asdict(event)))
49
- uow.commit()
+ allocate(commands.Allocate(**asdict(event)), uow=uow)
50
51
52
def change_batch_quantity(
0 commit comments