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 } }