mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-09 16:19:25 -07:00
fix(ci): normalize session-day count comparison
This commit is contained in:
@@ -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;
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user