Skip to content

Commit 0f592fe

Browse files
committed
add handler for allocated
1 parent d746728 commit 0f592fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/allocation/service_layer/messagebus.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ def handle_command(
6060

6161

6262
EVENT_HANDLERS = {
63-
events.Allocated: [handlers.publish_allocated_event],
63+
events.Allocated: [
64+
handlers.publish_allocated_event,
65+
handlers.add_allocation_to_read_model
66+
],
6467
events.OutOfStock: [handlers.send_out_of_stock_notification],
6568
} # type: Dict[Type[events.Event], List[Callable]]
6669

0 commit comments

Comments
 (0)