feat: implement clock expiry scanning and handling for game records

This commit is contained in:
2026-05-16 13:07:20 +02:00
parent b0d27d2de2
commit 28894850ee
@@ -42,8 +42,7 @@ 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
}