Skip to content

Commit

Permalink
Fix api key endpoints after validation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenWeathers committed Sep 20, 2024
1 parent de91e6d commit 589547f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/http/apikey.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (s *Service) handleUserAPIKeyUpdate() http.HandlerFunc {
return
}
APK := vars["keyID"]
apkErr := validate.Var(APK, "required,uuid")
apkErr := validate.Var(APK, "required")
if apkErr != nil {
s.Failure(w, r, http.StatusBadRequest, Errorf(EINVALID, apkErr.Error()))
return
Expand Down Expand Up @@ -208,7 +208,7 @@ func (s *Service) handleUserAPIKeyDelete() http.HandlerFunc {
return
}
APK := vars["keyID"]
apkErr := validate.Var(APK, "required,uuid")
apkErr := validate.Var(APK, "required")
if apkErr != nil {
s.Failure(w, r, http.StatusBadRequest, Errorf(EINVALID, apkErr.Error()))
return
Expand Down

0 comments on commit 589547f

Please sign in to comment.