Add debugging

This commit is contained in:
Rene Vergara 2023-05-02 10:35:53 -05:00
parent b2fab07eb8
commit 519dbe1ac2
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -1415,6 +1415,7 @@ expireProSessions :: Pipe -> T.Text -> IO ()
expireProSessions pipe db = do
now <- getCurrentTime
psessions <- access pipe master db $ findExpiringProSessions now
print $ length psessions
let pSessObj = cast' . Doc <$> psessions
mapM_ (sendExpiration pipe db) pSessObj
where