From 687004da1293426dab9d385b1ef3f71d6f6b24d6 Mon Sep 17 00:00:00 2001 From: Ewan Sheldon Date: Tue, 27 Feb 2024 11:32:58 +0100 Subject: [PATCH] remove debug logging + reset indexing time --- src/liquidationPools.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/liquidationPools.js b/src/liquidationPools.js index b032c89..0609643 100644 --- a/src/liquidationPools.js +++ b/src/liquidationPools.js @@ -85,7 +85,7 @@ const fetchPrices = async (networkName, wallet) => { }; const scheduleLiquidationPoolData = async _ => { - schedule.scheduleJob('31 * * * *', async _ => { + schedule.scheduleJob('56 11 * * *', async _ => { console.log('indexing liquidation pool snapshots') const network = getNetwork('arbitrum'); const provider = new getDefaultProvider(network.rpc); @@ -108,7 +108,6 @@ const scheduleLiquidationPoolData = async _ => { const now = new Date(); const client = await pool.connect(); try { - console.log(POSTGRES_HOST, POSTGRES_PORT, POSTGRES_DB, POSTGRES_USERNAME, POSTGRES_PASSWORD.length) const query = 'INSERT INTO user_pool_snapshots (user_address,assets,snapshot_at) VALUES ($1,$2,$3);'; const data = [ holderAddress.toLowerCase(),