add more loggers and fix models

This commit is contained in:
Fran Jurmanović
2025-05-07 00:25:02 +02:00
parent a22ab15a02
commit 31a2b73cf9
4 changed files with 80 additions and 61 deletions

View File

@@ -60,7 +60,10 @@ func (ac *ConfigController) updateConfig(c *fiber.Ctx) error {
return c.Status(400).SendString(err.Error())
}
if restart {
ac.apiService.ApiRestartServer(c)
_, err := ac.apiService.ApiRestartServer(c)
if err != nil {
log.Print(err.Error())
}
}
return c.JSON(ConfigModel)