From d474814c53284b7d9c87f10e76be61afa2c19da9 Mon Sep 17 00:00:00 2001 From: Ewan Sheldon Date: Fri, 23 Feb 2024 18:08:00 +0100 Subject: [PATCH] get snapshots from main table --- src/liquidationPools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liquidationPools.js b/src/liquidationPools.js index fb32b13..3d2ada6 100644 --- a/src/liquidationPools.js +++ b/src/liquidationPools.js @@ -20,7 +20,7 @@ const getDBData = async userAddress => { let result = []; const client = await pool.connect(); try { - const query = 'SELECT snapshot_at, assets FROM user_pool_snapshots_sepolia where user_address = $1 ORDER BY snapshot_at ASC'; + const query = 'SELECT snapshot_at, assets FROM user_pool_snapshots where user_address = $1 ORDER BY snapshot_at ASC'; result = (await client.query(query, [userAddress])).rows; } finally { client.release();