fix: improve price fetching reliability in sync worker with Binance API and fallbacks

This commit is contained in:
mstfyldz
2026-03-13 05:39:47 +03:00
parent 7ba3903433
commit e66264219d
3 changed files with 120 additions and 12 deletions

10
check_status.js Normal file
View File

@@ -0,0 +1,10 @@
const { Client } = require('pg');
async function checkStatus() {
const client = new Client({ connectionString: process.env.DATABASE_URL });
await client.connect();
const res = await client.query("SELECT id, source_ref_id, status FROM transactions WHERE source_ref_id IN ('TEST_ORDER_999', 'TEST_ORDER_1000')");
console.log(JSON.stringify(res.rows, null, 2));
await client.end();
}
checkStatus();