Changed variable BodyTemplateId to TemplateId
parent
3290a70a0b
commit
d41a73cb9a
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue