Skip to content

Commit

Permalink
테스트를 위한 main merge
Browse files Browse the repository at this point in the history
  • Loading branch information
gkfktkrh153 authored Jan 8, 2024
1 parent 1db4ee6 commit 551ff3f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ public class NotificationController {
@GetMapping(value = "/connect", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
public ResponseEntity<SseEmitter> connect() {
String email = SecurityContextHolder.getContext().getAuthentication().getName();
/*
if (email.equals("anonymous")) {
throw new CustomException(ErrorCode.UNAUTHORIZED);
}

*/
Long memberId = notificationService.getMemberId(email);
SseEmitter sseEmitter = new SseEmitter(3600000L);
sseEmitterMap.put(memberId, sseEmitter);
Expand Down

0 comments on commit 551ff3f

Please sign in to comment.