import { createPostgresPool } from './src/lib/postgres.mjs'; import { refreshQuoteOutcomes } from './src/lib/postgres.mjs'; const pool = createPostgresPool({ connectionString: process.env.POSTGRES_URL }); async function main() { console.log("Starting refreshQuoteOutcomes..."); try { const records = await refreshQuoteOutcomes(pool, { btcAsset: { assetId: 'nep141:nbtc.bridge.near' }, eureAsset: { assetId: 'nep141:eure.omft.near' } }); console.log("Returned records:", records.length); console.log("Completed:", records.filter(r => r.outcome_status === 'completed').length); } catch(e) { console.error("Error:", e); } process.exit(0); } main();