fix(ci): resolve immersion tracker type mismatches

This commit is contained in:
2026-03-28 13:22:03 -07:00
parent 2582c2a7ad
commit f4d1cc9fb9
4 changed files with 7 additions and 4 deletions

View File

@@ -175,7 +175,7 @@ function rebuildLifetimeSummariesInternal(
return {
appliedSessions: sessions.length,
rebuiltAtMs,
rebuiltAtMs: Number(rebuiltAtMs),
};
}

View File

@@ -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 (?, ?)

View File

@@ -40,7 +40,7 @@ export function startSessionRecord(
export function finalizeSessionRecord(
db: DatabaseSync,
sessionState: SessionState,
endedAtMs = nowMs(),
endedAtMs: number | string = nowMs(),
): void {
db.prepare(
`

View File

@@ -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(), {