mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +00:00
test
This commit is contained in:
@@ -72,7 +72,7 @@ import Database.Esqueleto.Experimental (
|
||||
(:&) (..),
|
||||
(==.),
|
||||
(^.),
|
||||
(||.), not_,
|
||||
(||.),
|
||||
)
|
||||
import Database.Persist qualified as P
|
||||
import Database.Persist.Postgresql (
|
||||
|
||||
@@ -313,7 +313,7 @@ checkAdminAuthUpload pkgId = do
|
||||
|
||||
getPkgIdParam :: MonadHandler m => m (Maybe PkgId)
|
||||
getPkgIdParam = do
|
||||
lookupPostParam "id" >>= \case
|
||||
lookupGetParam "id" >>= \case
|
||||
Nothing -> pure Nothing
|
||||
Just v -> case readMaybe v of
|
||||
Nothing -> sendResponseStatus status400 ("Invalid PkgId" :: Text)
|
||||
|
||||
Reference in New Issue
Block a user