import { createPostgresPool, refreshQuoteOutcomes } from './src/lib/postgres.mjs'; async function main() { const pool = createPostgresPool({ connectionString: process.env.POSTGRES_URL }); console.log("Running refreshQuoteOutcomes with large limits to re-attribute historical trades..."); const records = await refreshQuoteOutcomes(pool, { submissionLimit: 15000, inventoryLimit: 50000, }); console.log("Refreshed", records.length, "quotes."); const completed = records.filter(r => r.outcome_status === 'completed'); console.log("Found", completed.length, "completed trades!"); process.exit(0); } main().catch(console.error);