task-ep.1.5

This commit is contained in:
phaichayon
2026-07-13 15:03:17 +07:00
parent bba4c8d97d
commit 2bc8dd184c
19 changed files with 9722 additions and 5 deletions

View File

@@ -81,8 +81,8 @@ export class DrizzleProjectionRuntimeStore implements ProjectionRuntimeStore {
RETURNING business_event_outbox.*
`);
const rows = Array.isArray(result) ? result : result.rows;
return rows.map((row) => mapDelivery(row as typeof businessEventOutbox.$inferSelect));
const rows = result as unknown as Array<typeof businessEventOutbox.$inferSelect>;
return rows.map((row) => mapDelivery(row));
}
async markDeliveryProcessing(eventId: string, now: Date): Promise<void> {