Skip to content

Commit

Permalink
el
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Gorzala committed Jan 21, 2024
1 parent bb65d3b commit 1fdb2bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public void handle(MessagePostedEvent messagePostedEvent) {
public void handle(MessageReadEvent messageReadEvent) {
log.info("Handling Read....");
State state = statePort.get(messageReadEvent.getReaderId());

state.removeReadMessages(messageReadEvent.getMessageId());
statePort.save(state.toDto(), messageReadEvent.getReaderId());
}
}

0 comments on commit 1fdb2bc

Please sign in to comment.