fix: increase safeSubmissionLimit to 50000
All checks were successful
deploy / deploy (push) Successful in 50s

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
This commit is contained in:
philipp 2026-06-16 16:13:01 +02:00
parent 62315082ea
commit 35628de07a

View file

@ -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(
`