mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-09 16:19:25 -07:00
fix(ci): simplify first-session day count cast
This commit is contained in:
@@ -93,8 +93,7 @@ function isFirstSessionForLocalDay(
|
||||
currentSessionId: number,
|
||||
startedAtMs: number,
|
||||
): boolean {
|
||||
return (
|
||||
Number(
|
||||
return Number(
|
||||
(
|
||||
db
|
||||
.prepare(
|
||||
@@ -108,10 +107,9 @@ function isFirstSessionForLocalDay(
|
||||
)
|
||||
`,
|
||||
)
|
||||
.get(startedAtMs, startedAtMs, startedAtMs, currentSessionId) as ExistenceRow | null
|
||||
)?.count ?? 0,
|
||||
.get(startedAtMs, startedAtMs, startedAtMs, currentSessionId) as ExistenceRow | null,
|
||||
)?.count ?? 0
|
||||
) === 0;
|
||||
);
|
||||
}
|
||||
|
||||
function resetLifetimeSummaries(db: DatabaseSync, nowMs: string): void {
|
||||
|
||||
Reference in New Issue
Block a user