stato intermedio

This commit is contained in:
fabio
2026-03-01 14:36:26 +01:00
parent e0ef48f6fd
commit b852f656d4
25 changed files with 4230 additions and 390 deletions

View File

@@ -68,12 +68,12 @@ func (uc *UsersController) Table(c *fiber.Ctx) error {
}
func (uc *UsersController) Modal(c *fiber.Ctx) error {
id, err := strconv.ParseUint(c.Params("id"), 10, 64)
if err != nil || id == 0 {
id := strings.TrimSpace(c.Params("id"))
if id == "" {
return c.Status(fiber.StatusBadRequest).SendString("invalid user id")
}
user, err := uc.usersService.GetByID(uint(id))
user, err := uc.usersService.GetByID(id)
if err != nil {
return err
}