MCPcopy Create free account
hub / github.com/devinterface/startersaas-go-api / loadEmail

Function loadEmail

services/email.service.go:29–36  ·  view source on GitHub ↗
(code string, lang string)

Source from the content-addressed store, hash-verified

27}
28
29func 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
39func (emailService *EmailService) SendActivationEmail(q bson.M) (success bool, err error) {

Callers 5

SendActivationEmailMethod · 0.85
SendActiveEmailMethod · 0.85
SendNotificationEmailMethod · 0.85
StoreEmailsMethod · 0.85

Calls 1

getCollectionMethod · 0.45

Tested by

no test coverage detected