mirror of
https://github.com/Start9Labs/registry.git
synced 2026-04-04 21:59:43 +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 qualified as P
|
||||||
import Database.Persist.Postgresql (
|
import Database.Persist.Postgresql (
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ checkAdminAuthUpload pkgId = do
|
|||||||
|
|
||||||
getPkgIdParam :: MonadHandler m => m (Maybe PkgId)
|
getPkgIdParam :: MonadHandler m => m (Maybe PkgId)
|
||||||
getPkgIdParam = do
|
getPkgIdParam = do
|
||||||
lookupPostParam "id" >>= \case
|
lookupGetParam "id" >>= \case
|
||||||
Nothing -> pure Nothing
|
Nothing -> pure Nothing
|
||||||
Just v -> case readMaybe v of
|
Just v -> case readMaybe v of
|
||||||
Nothing -> sendResponseStatus status400 ("Invalid PkgId" :: Text)
|
Nothing -> sendResponseStatus status400 ("Invalid PkgId" :: Text)
|
||||||
|
|||||||
Reference in New Issue
Block a user