mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-10 04:19:25 -07:00
fix(ci): resolve immersion tracker type mismatches
This commit is contained in:
@@ -175,7 +175,7 @@ function rebuildLifetimeSummariesInternal(
|
||||
|
||||
return {
|
||||
appliedSessions: sessions.length,
|
||||
rebuiltAtMs,
|
||||
rebuiltAtMs: Number(rebuiltAtMs),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ function getLastRollupSampleMs(db: DatabaseSync): number {
|
||||
return row ? Number(row.state_value) : ZERO_ID;
|
||||
}
|
||||
|
||||
function setLastRollupSampleMs(db: DatabaseSync, sampleMs: number | bigint): void {
|
||||
function setLastRollupSampleMs(db: DatabaseSync, sampleMs: string | number | bigint): void {
|
||||
db.prepare(
|
||||
`INSERT INTO imm_rollup_state (state_key, state_value)
|
||||
VALUES (?, ?)
|
||||
|
||||
@@ -40,7 +40,7 @@ export function startSessionRecord(
|
||||
export function finalizeSessionRecord(
|
||||
db: DatabaseSync,
|
||||
sessionState: SessionState,
|
||||
endedAtMs = nowMs(),
|
||||
endedAtMs: number | string = nowMs(),
|
||||
): void {
|
||||
db.prepare(
|
||||
`
|
||||
|
||||
@@ -1049,7 +1049,10 @@ export function startStatsServer(config: StatsServerConfig): { close: () => void
|
||||
}
|
||||
}
|
||||
|
||||
const body = req.method === 'GET' || req.method === 'HEAD' ? undefined : Readable.toWeb(req);
|
||||
const body =
|
||||
req.method === 'GET' || req.method === 'HEAD'
|
||||
? undefined
|
||||
: (Readable.toWeb(req) as unknown as BodyInit);
|
||||
|
||||
const response = await app.fetch(
|
||||
new Request(url.toString(), {
|
||||
|
||||
Reference in New Issue
Block a user