Changed variable BodyTemplateId to TemplateId

master
RuisPipe 2021-06-15 21:58:53 +02:00
parent 3290a70a0b
commit d41a73cb9a
1 changed files with 6 additions and 6 deletions

View File

@ -9,11 +9,11 @@ import (
)
type MailInput struct {
Key string `json:"k"`
Mail string `json:"m"`
BodyTemplateId int `json:"t"`
LanguageId int `json:"l"`
BodyData *json.RawMessage `json:"d"`
Key string `json:"k"`
Mail string `json:"m"`
TemplateId int `json:"t"`
LanguageId int `json:"l"`
BodyData *json.RawMessage `json:"d"`
}
func SendMail(c *fiber.Ctx) error {
@ -32,7 +32,7 @@ func SendMail(c *fiber.Ctx) error {
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)
}