lift version

This commit is contained in:
Aiden McClelland
2022-09-07 16:46:43 -06:00
parent 61e9cd169d
commit b7d2464419

View File

@@ -104,7 +104,7 @@ getVersionFromQuery = do
Nothing -> pure Nothing
Just v -> case readMaybe v of
Nothing -> sendResponseStatus status400 ("Invalid Version" :: Text)
Just t -> pure t
Just t -> pure Just t
getHashFromQuery :: MonadHandler m => m (Maybe Text)
getHashFromQuery = lookupGetParam "hash"