From fe99c6b6cd5c54a0681f77890180e73c0dd3d665 Mon Sep 17 00:00:00 2001 From: mybloom Date: Fri, 30 Dec 2022 13:35:33 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20::=20=ED=91=B8=EC=89=AC=EC=95=8C?= =?UTF-8?q?=EB=A6=BC=20=EB=8C=80=EC=83=81=EC=9E=90=20=EC=97=86=EC=9D=84=20?= =?UTF-8?q?=EB=95=8C=20=EC=97=90=EB=9F=AC=20=EB=B0=9C=EC=83=9D=EB=B6=80?= =?UTF-8?q?=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/notification/service/NotificationService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/service/NotificationService.java b/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/service/NotificationService.java index 944dc2f3..d5558924 100644 --- a/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/service/NotificationService.java +++ b/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/service/NotificationService.java @@ -172,6 +172,9 @@ public void sendInstance(SendInstanceRequest request) { List deviceTokens = getDeviceTokens(request.getGroupId(), sendUserId); List tokens = getFcmTokens(deviceTokens); + if (tokens.isEmpty()) { + return; + } fcmService.sendGroupMessage( tokens, request.getTitle(), request.getContent(), request.getImageUrl());