Skip to content

Commit 516cae8

Browse files
authored
Merge pull request #1169 from woowacourse-teams/BE/dev
[BE] 타이머 status 전송 hotfix 테스트 서버로 이동
2 parents 069c643 + deb1d6a commit 516cae8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

backend/src/main/java/site/coduo/websocket/stomp/StompEventListener.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ public void onSubscription(final SessionSubscribeEvent event) {
3030
throw new NotFoundAccessCodeInQueryException("STOMP 헤더에 simpDestination이 존재하지 않습니다.");
3131
}
3232
final String key = parsePairRoomKey(destination);
33-
if (timerStompManager.isTimerStatusDestination(destination, key)) {
34-
schedulerService.notifyTimerStatus(key);
35-
}
33+
schedulerService.notifyTimerStatus(key);
3634
}
3735

3836
@EventListener
@@ -43,9 +41,7 @@ public void onUnSubscription(final SessionUnsubscribeEvent event) {
4341
throw new NotFoundAccessCodeInQueryException("STOMP 헤더에 simpSubscriptionId가 존재하지 않습니다.");
4442
}
4543
final String key = parsePairRoomKey(destination);
46-
if (timerStompManager.isTimerStatusDestination(destination, key)) {
47-
schedulerService.syncTimerWithDatabase(key);
48-
}
44+
schedulerService.syncTimerWithDatabase(key);
4945
}
5046

5147
private String parsePairRoomKey(final String destination) {

0 commit comments

Comments
 (0)