fix: add const for test env

This commit is contained in:
Lakhan Samani
2022-06-09 23:13:22 +05:30
parent 78a673e4ad
commit 02eb1d6677
4 changed files with 13 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ func SendMail(to []string, Subject, bodyMessage string) error {
if err != nil {
return err
}
if envKey == "test" {
if envKey == constants.TestEnv {
return nil
}
m := gomail.NewMessage()