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,
|
startedAtMs: number,
|
||||||
): boolean {
|
): boolean {
|
||||||
return (
|
return (
|
||||||
|
Number(
|
||||||
(
|
(
|
||||||
db
|
db
|
||||||
.prepare(
|
.prepare(
|
||||||
@@ -108,7 +109,8 @@ function isFirstSessionForLocalDay(
|
|||||||
`,
|
`,
|
||||||
)
|
)
|
||||||
.get(startedAtMs, startedAtMs, startedAtMs, currentSessionId) as ExistenceRow | null
|
.get(startedAtMs, startedAtMs, startedAtMs, currentSessionId) as ExistenceRow | null
|
||||||
)?.count === 0
|
)?.count ?? 0,
|
||||||
|
) === 0;
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user