Check for pgx.ErrNoRows to return proper 404

This commit is contained in:
2026-02-09 15:57:53 -05:00
parent eacca4ef95
commit 3d776e762c
+1
View File
@@ -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"})
}