Parcourir la source

Update if else

Vishal il y a 1 an
Parent
commit
a7692b7d2e
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      server/pkg/utils/email/email.go

+ 2 - 1
server/pkg/utils/email/email.go

@@ -137,8 +137,9 @@ func SendTemplatedEmail(to []string, fromName string, fromEmail string, subject
 	isSESEnabled := viper.GetBool("ses-smtp.isEnabled")
 	isSESEnabled := viper.GetBool("ses-smtp.isEnabled")
 	if isSESEnabled {
 	if isSESEnabled {
 		return SendSES(to, fromName, fromEmail, subject, body, inlineImages)
 		return SendSES(to, fromName, fromEmail, subject, body, inlineImages)
+	} else {
+		return Send(to, fromName, fromEmail, subject, body, inlineImages)
 	}
 	}
-	return Send(to, fromName, fromEmail, subject, body, inlineImages)
 }
 }
 
 
 func GetMaskedEmail(email string) string {
 func GetMaskedEmail(email string) string {