fix(ci): normalize session-day count comparison

This commit is contained in:
2026-03-28 13:24:44 -07:00
parent a96df287d1
commit e4c8c60b3e

View File

@@ -94,6 +94,7 @@ function isFirstSessionForLocalDay(
startedAtMs: number,
): boolean {
return (
Number(
(
db
.prepare(
@@ -108,7 +109,8 @@ function isFirstSessionForLocalDay(
`,
)
.get(startedAtMs, startedAtMs, startedAtMs, currentSessionId) as ExistenceRow | null
)?.count === 0
)?.count ?? 0,
) === 0;
);
}