mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +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 appId version = do
|
||||
time <- liftIO getCurrentTime
|
||||
insert_ $ Metric time (PkgRecordKey appId) (VersionRecordKey (PkgRecordKey appId) version)
|
||||
insert_ $ Metric time (PkgRecordKey appId) version
|
||||
|
||||
@@ -54,7 +54,7 @@ OsVersion
|
||||
Metric
|
||||
createdAt UTCTime
|
||||
pkgId PkgRecordId
|
||||
version VersionRecordId
|
||||
version Version
|
||||
deriving Eq
|
||||
deriving Show
|
||||
|
||||
|
||||
Reference in New Issue
Block a user