Skip to content

Commit

Permalink
fix dc example by adding the event handler for the CustomerMarkedVip …
Browse files Browse the repository at this point in the history
…event
  • Loading branch information
janikdotzel committed Aug 21, 2024
1 parent 952d10a commit 1777c4a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ public EventHandler<State, Event> eventHandler() {
.forAnyState()
.onEvent(
ItemUpdated.class, (state, event) -> state.updateItem(event.itemId, event.quantity))
.onEvent(CustomerMarkedVip.class, (state, event) -> state.markCustomerVip())
.onEvent(
Closed.class,
(state, event) -> {
Expand Down

0 comments on commit 1777c4a

Please sign in to comment.