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
+1 -1
View File
@@ -204,7 +204,7 @@ func EnviarCorreoContrato(c *fiber.Ctx) error {
if err != nil {
return c.Status(404).JSON(fiber.Map{"error": "Regla no encontrada"})
}
if err := services.EnviarNotificacionGrupo(regla, &contrato.Cliente, []models.Contrato{*contrato}); err != nil {
if err := services.EnviarNotificacionGrupo(regla, &contrato.Cliente, []models.Contrato{*contrato}, ""); err != nil {
return c.Status(500).JSON(fiber.Map{"error": err.Error()})
}
return c.JSON(fiber.Map{"message": "Correo enviado", "ok": true})