Skip to content

Commit

Permalink
[BE] fix: MockMailClient 빈으로 등록되는 프로파일 변경 (#542) (#543)
Browse files Browse the repository at this point in the history
* fix: dev, prod 프로파일이 아니면 등록되게 변경

* chore: 순서 변경
  • Loading branch information
seokjin8678 authored Oct 15, 2023
1 parent 706bb47 commit 563b08e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 563b08e

Please sign in to comment.