Update query_runner_controller.go

This commit is contained in:
Lizandro Guarnizo
2026-05-01 16:26:51 -05:00
parent cbe54f079d
commit e04f0a422e
+1 -1
View File
@@ -109,7 +109,7 @@ func TestConnection(c *fiber.Ctx) error {
return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{"error": err.Error()})
}
if err := services.TestDBConnection(conx); err != nil {
return c.Status(fiber.StatusBadGateway).JSON(fiber.Map{"ok": false, "error": err.Error()})
return c.Status(fiber.StatusUnprocessableEntity).JSON(fiber.Map{"ok": false, "error": err.Error()})
}
return c.JSON(fiber.Map{"ok": true})
}