File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/com/somemore/notification/handler Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11package com .somemore .notification .handler ;
22
3+ import com .somemore .notification .domain .Notification ;
4+
35public interface NotificationHandler {
46
5- void handle (String message );
7+ void handle (Notification notification );
68}
Original file line number Diff line number Diff line change 11package com .somemore .notification .handler ;
22
3- import com .somemore .notification .converter .MessageConverter ;
43import com .somemore .notification .domain .Notification ;
54import com .somemore .notification .dto .NotificationResponseDto ;
65import com .somemore .notification .repository .NotificationRepository ;
@@ -18,8 +17,7 @@ public class NotificationHandlerImpl implements NotificationHandler {
1817 private final SseSender sseSender ;
1918
2019 @ Override
21- public void handle (String message ) {
22- Notification notification = MessageConverter .ToNotification (message );
20+ public void handle (Notification notification ) {
2321 notificationRepository .save (notification );
2422
2523 sseSender .send (createSseEvent (notification ));
You can’t perform that action at this time.
0 commit comments