mirror of
https://github.com/Start9Labs/registry.git
synced 2026-04-04 13:49:43 +00:00
insert user activity even if version and arch do not exist
This commit is contained in:
@@ -156,14 +156,10 @@ tickleMAU = do
|
|||||||
lookupGetParam "server-id" >>= \case
|
lookupGetParam "server-id" >>= \case
|
||||||
Nothing -> pure ()
|
Nothing -> pure ()
|
||||||
Just sid -> do
|
Just sid -> do
|
||||||
queryParamAs "eos-version" parseVersion >>= \case
|
currentEosVersion <- queryParamAs "eos-version" parseVersion
|
||||||
Nothing -> pure ()
|
arch <- getArchQuery
|
||||||
Just currentEosVersion -> do
|
now <- liftIO getCurrentTime
|
||||||
getArchQuery >>= \case
|
void $ liftHandler $ runDB $ insertRecord $ UserActivity now sid currentEosVersion arch
|
||||||
Nothing -> pure ()
|
|
||||||
Just arch -> do
|
|
||||||
now <- liftIO getCurrentTime
|
|
||||||
void $ liftHandler $ runDB $ insertRecord $ UserActivity now sid (Just currentEosVersion) $ Just arch
|
|
||||||
|
|
||||||
|
|
||||||
fetchCompatiblePkgVersions :: Maybe VersionRange -> PkgId -> Handler [VersionRecord]
|
fetchCompatiblePkgVersions :: Maybe VersionRange -> PkgId -> Handler [VersionRecord]
|
||||||
|
|||||||
Reference in New Issue
Block a user