fix: recover auction finalization across worker restarts
This commit is contained in:
1 parent
439e4272e0
commit
1345aa25a1
8 files changed
+1202
-146
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user