chore(health): minor change treating HealthInactive

This commit is contained in:
Steffen Jost 2023-07-12 12:51:34 +00:00
parent 2e59d3c2ea
commit 57842a53e7
2 changed files with 3 additions and 3 deletions

View File

@ -551,7 +551,7 @@ warpSettings foundation = defaultSettings
atomically $ do
results <- readTVar $ foundation ^. _appHealthReport
guard $ activeChecks == Set.map (classifyHealthReport . snd) results
guard . (/= Min HealthFailure) $ foldMap (Min . healthReportStatus . snd) results
guard . (== Min HealthSuccess) $ foldMap (Min . healthReportStatus . snd) results
notifyReady
| otherwise
-> notifyReady

View File

@ -47,8 +47,8 @@ dispatchJobSynchroniseAvs numIterations epoch iteration pause
dispatchJobSynchroniseAvsId :: AvsPersonId -> Maybe Day -> JobHandler UniWorX
dispatchJobSynchroniseAvsId apid pause = JobHandlerException $ do
ok <- runDB $
getBy (UniqueUserAvsId apid) >>= \case
ok <- runDB $ getBy (UniqueUserAvsId apid) >>=
\case
(Just Entity{entityVal=UserAvs{userAvsUser=uid}}) -> do -- known user
workJobSychronizeAvs uid pause
return True