fix: exponer es_agente_bot y telegram_config_id en respuesta de AI Config

This commit is contained in:
Lizandro GD
2026-07-13 19:20:50 +00:00
parent 4f309ad9d5
commit a8786e2aca
+4
View File
@@ -47,6 +47,8 @@ func GetAiConfigs(c *fiber.Ctx) error {
IsActive bool `json:"is_active"` IsActive bool `json:"is_active"`
Notes string `json:"notes"` Notes string `json:"notes"`
Modulo string `json:"modulo"` Modulo string `json:"modulo"`
EsAgenteBot bool `json:"es_agente_bot"`
TelegramConfigID *uint `json:"telegram_config_id"`
} }
safeItems := make([]safe, len(items)) safeItems := make([]safe, len(items))
for i, it := range items { for i, it := range items {
@@ -64,6 +66,8 @@ func GetAiConfigs(c *fiber.Ctx) error {
IsActive: it.IsActive, IsActive: it.IsActive,
Notes: it.Notes, Notes: it.Notes,
Modulo: it.Modulo, Modulo: it.Modulo,
EsAgenteBot: it.EsAgenteBot,
TelegramConfigID: it.TelegramConfigID,
} }
} }