fix(avs): background synch was only triggerd by manual synchs

This commit is contained in:
Steffen Jost 2023-12-07 16:58:04 +01:00
parent 0b9a1257db
commit 48ef25aa8f

View File

@ -27,6 +27,7 @@ dispatchJobSynchroniseAvs numIterations epoch iteration pause
now <- liftIO getCurrentTime now <- liftIO getCurrentTime
todos <- runConduit $ readUsers .| filterIteration now .| sinkList todos <- runConduit $ readUsers .| filterIteration now .| sinkList
putMany todos putMany todos
void $ queueJob JobSynchroniseAvsQueue
where where
readUsers :: ConduitT () UserId _ () readUsers :: ConduitT () UserId _ ()
readUsers = selectKeys [] [] readUsers = selectKeys [] []