mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-09 16:19:25 -07:00
fix(ci): resolve immersion tracker type mismatches
This commit is contained in:
@@ -175,7 +175,7 @@ function rebuildLifetimeSummariesInternal(
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
appliedSessions: sessions.length,
|
appliedSessions: sessions.length,
|
||||||
rebuiltAtMs,
|
rebuiltAtMs: Number(rebuiltAtMs),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ function getLastRollupSampleMs(db: DatabaseSync): number {
|
|||||||
return row ? Number(row.state_value) : ZERO_ID;
|
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(
|
db.prepare(
|
||||||
`INSERT INTO imm_rollup_state (state_key, state_value)
|
`INSERT INTO imm_rollup_state (state_key, state_value)
|
||||||
VALUES (?, ?)
|
VALUES (?, ?)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export function startSessionRecord(
|
|||||||
export function finalizeSessionRecord(
|
export function finalizeSessionRecord(
|
||||||
db: DatabaseSync,
|
db: DatabaseSync,
|
||||||
sessionState: SessionState,
|
sessionState: SessionState,
|
||||||
endedAtMs = nowMs(),
|
endedAtMs: number | string = nowMs(),
|
||||||
): void {
|
): void {
|
||||||
db.prepare(
|
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(
|
const response = await app.fetch(
|
||||||
new Request(url.toString(), {
|
new Request(url.toString(), {
|
||||||
|
|||||||
Reference in New Issue
Block a user