fix: recover auction finalization across worker restarts

This commit is contained in:
2026-07-31 11:59:02 +00:00
parent 439e4272e0
commit 1345aa25a1
8 changed files with 1202 additions and 146 deletions
+5 -1
View File
@@ -22,7 +22,11 @@ export const seedAuctionTimers = async (
keys: AuctionTimerKeys
): Promise<number> => {
const rows = await db.$queryRaw<AuctionTimerRow[]>(
GamePrisma.sql`SELECT id, close_at as "closeAt", status FROM auction WHERE status = 'OPEN'`
GamePrisma.sql`
SELECT id, close_at as "closeAt", status
FROM auction
WHERE status IN ('OPEN', 'FINALIZING')
`
);
if (!rows.length) {
return 0;