Skip to content

Commit

Permalink
refactor: when chat message send to rabbitmq, it's will be dto type
Browse files Browse the repository at this point in the history
  • Loading branch information
psychology50 committed Oct 30, 2024
1 parent fa79dfd commit fd1b607
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ public void execute(SendMessageCommand command) {
.categoryType(command.categoryType())
.sender(command.senderId())
.build();
message = chatMessageService.save(message);

ChatMessageDto.Response response = ChatMessageDto.Response.from(chatMessageService.save(message));
ChatMessageDto.Response response = ChatMessageDto.Response.from(message);

messageBrokerAdapter.convertAndSend(
chatExchangeProperties.getExchange(),
Expand Down

0 comments on commit fd1b607

Please sign in to comment.