mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-31 04:03:40 +00:00
fix the types on the db entries
This commit is contained in:
@@ -20,4 +20,4 @@ fetchAppVersion pkgId version = get (VersionRecordKey (PkgRecordKey pkgId) versi
|
|||||||
createMetric :: MonadIO m => PkgId -> Version -> ReaderT SqlBackend m ()
|
createMetric :: MonadIO m => PkgId -> Version -> ReaderT SqlBackend m ()
|
||||||
createMetric appId version = do
|
createMetric appId version = do
|
||||||
time <- liftIO getCurrentTime
|
time <- liftIO getCurrentTime
|
||||||
insert_ $ Metric time (PkgRecordKey appId) (VersionRecordKey (PkgRecordKey appId) version)
|
insert_ $ Metric time (PkgRecordKey appId) version
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ OsVersion
|
|||||||
Metric
|
Metric
|
||||||
createdAt UTCTime
|
createdAt UTCTime
|
||||||
pkgId PkgRecordId
|
pkgId PkgRecordId
|
||||||
version VersionRecordId
|
version Version
|
||||||
deriving Eq
|
deriving Eq
|
||||||
deriving Show
|
deriving Show
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user