fix: exponer es_agente_bot y telegram_config_id en respuesta de AI Config
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user