From 563b08eb6686e3875bd424f5e17d7fa3a39d1c5d Mon Sep 17 00:00:00 2001 From: seokjin8678 Date: Sun, 15 Oct 2023 23:42:47 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20fix:=20MockMailClient=20=EB=B9=88?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=93=B1=EB=A1=9D=EB=90=98=EB=8A=94=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=8C=8C=EC=9D=BC=20=EB=B3=80=EA=B2=BD=20(#5?= =?UTF-8?q?42)=20(#543)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: dev, prod 프로파일이 아니면 등록되게 변경 * chore: 순서 변경 --- .../festago/fcm/application/FCMNotificationEventListener.java | 2 +- .../com/festago/student/infrastructure/MockMailClient.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/com/festago/fcm/application/FCMNotificationEventListener.java b/backend/src/main/java/com/festago/fcm/application/FCMNotificationEventListener.java index 379b02c5f..0c0f76cdd 100644 --- a/backend/src/main/java/com/festago/fcm/application/FCMNotificationEventListener.java +++ b/backend/src/main/java/com/festago/fcm/application/FCMNotificationEventListener.java @@ -20,7 +20,7 @@ import org.springframework.transaction.event.TransactionalEventListener; @Component -@Profile({"dev", "prod"}) +@Profile({"prod", "dev"}) public class FCMNotificationEventListener { private static final Logger log = LoggerFactory.getLogger(FCMNotificationEventListener.class); diff --git a/backend/src/main/java/com/festago/student/infrastructure/MockMailClient.java b/backend/src/main/java/com/festago/student/infrastructure/MockMailClient.java index 5fd9181d9..782baed03 100644 --- a/backend/src/main/java/com/festago/student/infrastructure/MockMailClient.java +++ b/backend/src/main/java/com/festago/student/infrastructure/MockMailClient.java @@ -6,10 +6,11 @@ import org.springframework.stereotype.Component; @Component -@Profile({"local", "test"}) +@Profile("!{dev|prod}") public class MockMailClient implements MailClient { @Override public void send(VerificationMailPayload payload) { + // no-op } }