From 589547f1842095f37caffef957cc1a60ae31a7cc Mon Sep 17 00:00:00 2001 From: Steven Weathers Date: Thu, 19 Sep 2024 20:20:50 -0400 Subject: [PATCH] Fix api key endpoints after validation updates --- internal/http/apikey.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/http/apikey.go b/internal/http/apikey.go index 87ef64c2..4cf21770 100644 --- a/internal/http/apikey.go +++ b/internal/http/apikey.go @@ -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 @@ -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