From 39ae24dda9ae32aede158ed1de77bf615aaf20e1 Mon Sep 17 00:00:00 2001 From: fing9 Date: Mon, 27 May 2024 13:19:42 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[Fix]=20=EC=9D=B4=EB=AF=B8=20=EA=B2=BD?= =?UTF-8?q?=EA=B3=A0=EA=B0=80=204=EA=B0=9C=EC=9D=B8=20=EC=82=AC=EB=9E=8C?= =?UTF-8?q?=EB=93=A4=EC=9D=80=20=EA=B2=BD=EA=B3=A0=20=EC=95=8C=EB=A6=BC?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../randomdefence/domain/user/service/UserInfoService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/randps/randomdefence/domain/user/service/UserInfoService.java b/src/main/java/com/randps/randomdefence/domain/user/service/UserInfoService.java index 908ee01..95b8215 100644 --- a/src/main/java/com/randps/randomdefence/domain/user/service/UserInfoService.java +++ b/src/main/java/com/randps/randomdefence/domain/user/service/UserInfoService.java @@ -161,8 +161,10 @@ public void checkAllUserSolvedStreak() throws JsonProcessingException { + "[" + (user.getWarning() - 1) + "->" + user.getWarning() + "]", true); } // 스트릭 끊김을 알리는 알림을 발행한다. - notifyService.systemPublish(user.getBojHandle(), "문제를 풀지 않아, 경고가 부여됐습니다.", - NotifyType.SYSTEM, null); + if (user.getWarning() < 4) { + notifyService.systemPublish(user.getBojHandle(), "문제를 풀지 않아, 경고가 부여됐습니다.", + NotifyType.SYSTEM, null); + } userRepository.save(user); } else { From 706203c1bb1478bceb8f6ec3a9f76b30f8a39e10 Mon Sep 17 00:00:00 2001 From: fing9 Date: Mon, 27 May 2024 14:38:14 +0900 Subject: [PATCH 2/3] =?UTF-8?q?[Fix]=20=EA=B3=B5=EC=A7=80=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EC=95=8C=EB=A6=BC=20=EC=98=A4=ED=83=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../randps/randomdefence/domain/board/service/BoardService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/randps/randomdefence/domain/board/service/BoardService.java b/src/main/java/com/randps/randomdefence/domain/board/service/BoardService.java index e4e4caa..1c4350d 100644 --- a/src/main/java/com/randps/randomdefence/domain/board/service/BoardService.java +++ b/src/main/java/com/randps/randomdefence/domain/board/service/BoardService.java @@ -105,7 +105,7 @@ public Board update(Long boardId, String type, String bojHandle, String title, S // 만약 공지라면 전체 유저에게 알림을 발행한다. if (type.equals("notice")) { - notifyService.systemPublishToAll("📣 공지에 변화가 있습니다. 확인해 보세요! [" + board.getTitle() + "]", + notifyService.systemPublishToAll("📣 공지에 변화가 있습니다. 확인해보세요! [" + board.getTitle() + "]", NotifyType.NOTICE, board.getId()); } From daf27fcf5fadc7412f8475609d0fe3ccf6124eb9 Mon Sep 17 00:00:00 2001 From: fing9 Date: Mon, 27 May 2024 14:38:35 +0900 Subject: [PATCH 3/3] =?UTF-8?q?[Fix]=20=EA=B3=B5=EC=A7=80=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EC=95=8C=EB=A6=BC=20=EC=98=A4=ED=83=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../randps/randomdefence/domain/board/service/BoardService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/randps/randomdefence/domain/board/service/BoardService.java b/src/main/java/com/randps/randomdefence/domain/board/service/BoardService.java index 1c4350d..b519dba 100644 --- a/src/main/java/com/randps/randomdefence/domain/board/service/BoardService.java +++ b/src/main/java/com/randps/randomdefence/domain/board/service/BoardService.java @@ -60,7 +60,7 @@ public Board save(String type, String bojHandle, String title, String content, I // 만약 공지라면 전체 유저에게 알림을 발행한다. if (type.equals("notice")) { - notifyService.systemPublishToAll("📣 새로운 공지가 등록되었습니다. 확인해 보세요! [" + board.getTitle() + "]", + notifyService.systemPublishToAll("📣 새로운 공지가 등록되었습니다. 확인해보세요! [" + board.getTitle() + "]", NotifyType.NOTICE, board.getId()); }