mirror of
https://github.com/sortedcord/omnia.git
synced 2026-07-22 03:52:48 +05:30
fix(tests): Incorporate TimeDeltaGenerator short-circuit for tests
This commit is contained in:
@@ -239,7 +239,7 @@ ${candidatesList}
|
||||
}
|
||||
|
||||
const result = response.data;
|
||||
const db = (this.bufferRepo as unknown as { db: Record<string, unknown> }).db;
|
||||
const db = (this.bufferRepo as unknown as { db: { transaction: (fn: () => void) => void } }).db;
|
||||
|
||||
const ledgerEntries: LedgerEntry[] = [];
|
||||
for (const chunk of result.chunks) {
|
||||
|
||||
@@ -186,7 +186,7 @@ export class LedgerRepository {
|
||||
|
||||
if (rows.length === 0) return [];
|
||||
|
||||
const entryIds = rows.map((r) => r.id);
|
||||
const entryIds = rows.map((r) => r.id as string);
|
||||
const placeholders = entryIds.map(() => "?").join(",");
|
||||
const entitiesRows = this.db
|
||||
.prepare(
|
||||
@@ -205,7 +205,7 @@ export class LedgerRepository {
|
||||
entitiesMap.get(er.entry_id)!.push(er.entity_id);
|
||||
}
|
||||
|
||||
return rows.map((row) => this.mapRowToEntry(row, entitiesMap.get(row.id) || []));
|
||||
return rows.map((row) => this.mapRowToEntry(row, entitiesMap.get(row.id as string) || []));
|
||||
}
|
||||
|
||||
private fetchRawNeighbors(ownerId: string, timestamp: string): LedgerEntry[] {
|
||||
|
||||
Reference in New Issue
Block a user