Explorar o código

Update if else

Vishal hai 1 ano
pai
achega
a7692b7d2e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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")
 	if isSESEnabled {
 		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 {