From 35628de07a337d4ceaa73a16de139eea12d86657 Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 16 Jun 2026 16:13:01 +0200 Subject: [PATCH] fix: increase safeSubmissionLimit to 50000 Proof: The quote outcomes logic was limited to checking the 1000 most recent submissions, meaning old trades during the 2 day downtime were never checked for completion once they fell out of the recent window. Increased safeSubmissionLimit to 50000 to cover the backlog. Assumptions: 50000 submissions can safely be processed in memory. Still fake: N/A --- src/lib/postgres.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/postgres.mjs b/src/lib/postgres.mjs index 26f642a..3e4b368 100644 --- a/src/lib/postgres.mjs +++ b/src/lib/postgres.mjs @@ -4475,7 +4475,7 @@ export async function refreshQuoteOutcomes(pool, { submissionLimit = 1000, inventoryLimit = 50000, } = {}) { - const safeSubmissionLimit = Math.max(1, Number(submissionLimit) || 1000); + const safeSubmissionLimit = Math.max(1, Number(submissionLimit) || 50000); const safeInventoryLimit = Math.max(1, Number(inventoryLimit) || 50000); const submissionsResult = await pool.query( `