浏览代码

Update if else

Vishal 1 年之前
父节点
当前提交
a7692b7d2e
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 {