This commit is contained in:
Lizandro Guarnizo
2026-05-12 22:34:10 -05:00
parent aead156ba8
commit 381425b7e6
9 changed files with 72 additions and 54 deletions
+9 -9
View File
@@ -167,10 +167,10 @@ func SeedPlantillasBase() {
db := app.Http.Database.DB
plantillasBase := []struct {
nombre string
asunto string
tipo string
cuerpo string
nombre string
asunto string
tipo string
cuerpo string
}{
{
nombre: "Pago recibido (base)",
@@ -271,7 +271,7 @@ func MigrateRenovaciones() {
&models.Cliente{},
&models.PlantillaCorreo{},
&models.NotificacionRegla{},
&models.Contrato{}, // incluye columnas enlace_pago y enlace_pago_link_id
&models.Contrato{}, // incluye columnas enlace_pago y enlace_pago_link_id
&models.NotificacionLog{},
&models.SmtpConfig{},
); err != nil {
@@ -663,11 +663,11 @@ func SeedSaas() {
var sub models.Submodules
if err := db.Where("url = ?", e.url).First(&sub).Error; err != nil {
sub = models.Submodules{
Title: e.title,
Title: e.title,
Description: e.desc,
Url: e.url,
ModuleId: modulo.ID,
ModifiedAt: time.Now(),
Url: e.url,
ModuleId: modulo.ID,
ModifiedAt: time.Now(),
}
if err := db.Create(&sub).Error; err != nil {
log.Printf("[SEED] Error creando submódulo '%s': %v", e.title, err)