fix: improve price fetching reliability in sync worker with Binance API and fallbacks
This commit is contained in:
10
check_status.js
Normal file
10
check_status.js
Normal 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();
|
||||
Reference in New Issue
Block a user