Changed variable BodyTemplateId to TemplateId
parent
3290a70a0b
commit
d41a73cb9a
|
@ -11,7 +11,7 @@ import (
|
||||||
type MailInput struct {
|
type MailInput struct {
|
||||||
Key string `json:"k"`
|
Key string `json:"k"`
|
||||||
Mail string `json:"m"`
|
Mail string `json:"m"`
|
||||||
BodyTemplateId int `json:"t"`
|
TemplateId int `json:"t"`
|
||||||
LanguageId int `json:"l"`
|
LanguageId int `json:"l"`
|
||||||
BodyData *json.RawMessage `json:"d"`
|
BodyData *json.RawMessage `json:"d"`
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ func SendMail(c *fiber.Ctx) error {
|
||||||
|
|
||||||
log.Infoln("input", input, bodyData)
|
log.Infoln("input", input, bodyData)
|
||||||
|
|
||||||
mailer.NewMail([]string{"app@roese.dev"}, input.BodyTemplateId, input.LanguageId, bodyData)
|
mailer.NewMail([]string{"app@roese.dev"}, input.TemplateId, input.LanguageId, bodyData)
|
||||||
|
|
||||||
return c.SendStatus(fiber.StatusOK)
|
return c.SendStatus(fiber.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue