mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +00:00
fix version in service detail path
This commit is contained in:
committed by
Keagan McClelland
parent
2ee06007c7
commit
9c8f236095
@@ -27,9 +27,6 @@ getBestVersion :: (MonadIO m, KnownSymbol a, MonadLogger m) => FilePath -> Exten
|
||||
getBestVersion rootDir ext spec = do
|
||||
-- @TODO change to db query?
|
||||
appVersions <- liftIO $ getAvailableAppVersions rootDir ext
|
||||
$logInfo $ show appVersions
|
||||
$logInfo $ show spec
|
||||
$logInfo $ show ext
|
||||
let satisfactory = filter ((<|| spec) . fst . unRegisteredAppVersion) appVersions
|
||||
let best = getMax <$> foldMap (Just . Max . fst . unRegisteredAppVersion) satisfactory
|
||||
$logInfo $ show satisfactory
|
||||
|
||||
Reference in New Issue
Block a user