This commit is contained in:
Lizandro Guarnizo
2026-05-12 21:41:26 -05:00
parent 9ca202b3bd
commit fd8b5d68fa
10 changed files with 30 additions and 18 deletions
+2
View File
@@ -20,6 +20,7 @@ type NotificacionLog struct {
ErrorMsg string `json:"error_msg" gorm:"column:error_msg;type:text"`
Asunto string `json:"asunto" gorm:"column:asunto"`
PreviewHTML string `json:"preview_html" gorm:"column:preview_html;type:text"`
Pasarela string `json:"pasarela" gorm:"column:pasarela;type:varchar(20)"` // bold | dlocal | (vacío para correos de aviso)
}
func (NotificacionLog) TableName() string { return "notificaciones_log" }
@@ -75,6 +76,7 @@ func UpdateNotificacionLog(n NotificacionLog) error {
return app.Http.Database.DB.Model(&n).Updates(map[string]interface{}{
"estado": n.Estado,
"error_msg": n.ErrorMsg,
"pasarela": n.Pasarela,
}).Error
}