(code string, lang string)
| 27 | } |
| 28 | |
| 29 | func loadEmail(code string, lang string) (email *models.Email, err error) { |
| 30 | email = &models.Email{} |
| 31 | err = emailService.getCollection().First(bson.M{"code": code, "lang": lang}, email) |
| 32 | if email.Code == "" { |
| 33 | err = emailService.getCollection().First(bson.M{"code": code, "lang": os.Getenv("LOCALE")}, email) |
| 34 | } |
| 35 | return email, err |
| 36 | } |
| 37 | |
| 38 | // SendActivationEmail function |
| 39 | func (emailService *EmailService) SendActivationEmail(q bson.M) (success bool, err error) { |
no test coverage detected