Update if else

This commit is contained in:
Vishal 2024-03-27 21:40:40 +05:30
parent 9893e3f305
commit a7692b7d2e

View file

@ -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 {