Skip to content

Commit 3f399bc

Browse files
committed
add handler for allocated
1 parent 0dd6133 commit 3f399bc

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
@@ -63,7 +63,10 @@ def handle_command(
6363

6464

6565
EVENT_HANDLERS = {
66-
events.Allocated: [handlers.publish_allocated_event],
66+
events.Allocated: [
67+
handlers.publish_allocated_event,
68+
handlers.add_allocation_to_read_model,
69+
],
6770
events.OutOfStock: [handlers.send_out_of_stock_notification],
6871
} # type: Dict[Type[events.Event], List[Callable]]
6972

0 commit comments

Comments
 (0)