mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
adds timestamps
This commit is contained in:
committed by
Aiden McClelland
parent
ce8280b0ba
commit
27f05a4588
1
agent/src/Lib/External/Registry.hs
vendored
1
agent/src/Lib/External/Registry.hs
vendored
@@ -135,6 +135,7 @@ parseAppData = do
|
||||
storeAppVersions <- ad .: "version-info" >>= \case
|
||||
[] -> fail "No Valid Version Info"
|
||||
(x : xs) -> pure $ x :| xs
|
||||
storeAppTimestamp <- ad .: "timestamp"
|
||||
pure StoreApp { .. }
|
||||
|
||||
getAppVersionForSpec :: (Has RegistryUrl sig m, Has (Error S9Error) sig m, MonadIO m)
|
||||
|
||||
@@ -20,6 +20,7 @@ data StoreApp = StoreApp
|
||||
, storeAppDescriptionLong :: Text
|
||||
, storeAppIconUrl :: Text
|
||||
, storeAppVersions :: NonEmpty StoreAppVersionInfo
|
||||
, storeAppTimestamp :: UTCTime
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user