diff --git a/email/src/main/kotlin/com/few/email/sender/provider/AwsSESEmailSendProvider.kt b/email/src/main/kotlin/com/few/email/sender/provider/AwsSESEmailSendProvider.kt index b19628cdc..4eb34f8d0 100644 --- a/email/src/main/kotlin/com/few/email/sender/provider/AwsSESEmailSendProvider.kt +++ b/email/src/main/kotlin/com/few/email/sender/provider/AwsSESEmailSendProvider.kt @@ -3,9 +3,11 @@ package com.few.email.sender.provider import com.amazonaws.services.simpleemail.AmazonSimpleEmailService import com.amazonaws.services.simpleemail.model.* import io.github.oshai.kotlinlogging.KotlinLogging +import org.springframework.context.annotation.Primary import org.springframework.context.annotation.Profile import org.springframework.stereotype.Component +@Primary @Profile("prd") @Component class AwsSESEmailSendProvider( diff --git a/email/src/main/kotlin/com/few/email/sender/provider/JavaEmailSendProvider.kt b/email/src/main/kotlin/com/few/email/sender/provider/JavaEmailSendProvider.kt index c472239ee..25b4c0839 100644 --- a/email/src/main/kotlin/com/few/email/sender/provider/JavaEmailSendProvider.kt +++ b/email/src/main/kotlin/com/few/email/sender/provider/JavaEmailSendProvider.kt @@ -2,12 +2,10 @@ package com.few.email.sender.provider import jakarta.mail.MessagingException import jakarta.mail.internet.MimeMessage -import org.springframework.context.annotation.Profile import org.springframework.mail.javamail.JavaMailSender import org.springframework.mail.javamail.MimeMessageHelper import org.springframework.stereotype.Component -@Profile("!prd") @Component class JavaEmailSendProvider( private val emailSender: JavaMailSender,