From 3d776e762cea655f6b74351348d2cf60d928e3ff Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 9 Feb 2026 15:57:53 -0500 Subject: [PATCH] Check for pgx.ErrNoRows to return proper 404 --- internal/handlers/auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/handlers/auth.go b/internal/handlers/auth.go index 3680eb9..5819bdf 100644 --- a/internal/handlers/auth.go +++ b/internal/handlers/auth.go @@ -787,6 +787,7 @@ func (h *AuthHandler) UpdateUserMaxDevices(c echo.Context) error { return c.JSON(http.StatusInternalServerError, map[string]string{"error": err.Error()}) } + _ = user // Suppress unused variable warning when sqlc returns user return c.JSON(http.StatusOK, map[string]string{"message": "max devices updated"}) }