Skip to content

Commit 6e1e9cf

Browse files
committed
add handler for allocated
1 parent 9a17672 commit 6e1e9cf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/allocation/service_layer/messagebus.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ def handle_command(command, uow: unit_of_work.AbstractUnitOfWork):
4343

4444

4545
EVENT_HANDLERS = {
46-
events.Allocated: [handlers.publish_allocated_event],
46+
events.Allocated: [
47+
handlers.publish_allocated_event,
48+
handlers.add_allocation_to_read_model
49+
],
4750
events.OutOfStock: [handlers.send_out_of_stock_notification],
4851
} # type: Dict[Type[events.Event], List[Callable]]
4952

0 commit comments

Comments
 (0)