feat: implement clock expiry scanning and handling for game records #54

Merged
Janis merged 3 commits from NCS-85 into main 2026-05-16 15:09:05 +02:00
Showing only changes of commit 80dc577080 - Show all commits
@@ -42,7 +42,8 @@ class GameRecordRepository:
.asScala
.toList
.filter { g =>
val remaining = if g.clockActiveColor == "white" then g.whiteRemainingMs.longValue else g.blackRemainingMs.longValue
val remaining =
if g.clockActiveColor == "white" then g.whiteRemainingMs.longValue else g.blackRemainingMs.longValue
g.clockLastTickAt.longValue + remaining < nowMs
}