From c4f6dc9356a735a21280202a2b54c2a4863eee9f Mon Sep 17 00:00:00 2001 From: Jakub Chrobasik Date: Sat, 16 Dec 2023 09:01:00 +0100 Subject: [PATCH] fix: ExpiringTokensFinder locked on the date of service start --- .../repository/cleanup/ExpiringTokensFinder.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token-repository/src/main/scala/io/renku/tokenrepository/repository/cleanup/ExpiringTokensFinder.scala b/token-repository/src/main/scala/io/renku/tokenrepository/repository/cleanup/ExpiringTokensFinder.scala index 7f2f5a855c..e15ee3ecbc 100644 --- a/token-repository/src/main/scala/io/renku/tokenrepository/repository/cleanup/ExpiringTokensFinder.scala +++ b/token-repository/src/main/scala/io/renku/tokenrepository/repository/cleanup/ExpiringTokensFinder.scala @@ -64,7 +64,7 @@ private class ExpiringTokensFinderImpl[F[_]: Async: SessionResource: QueriesExec (Stream.eval(SessionResource[F].useK(measureExecutionTime(query))) ++ fetchAllChunks) .takeWhile(_.nonEmpty) - private lazy val query = + private def query = SqlStatement .named("find expiring tokens") .select[LocalDate, (Project, EncryptedAccessToken)](