From 39eddbf523b513c52803eb869d20b8618d324efb Mon Sep 17 00:00:00 2001 From: jmzwar Date: Thu, 27 Jun 2024 09:10:43 +0700 Subject: [PATCH] return distinct collateral types with no limit --- src/routes/v3/arbitrum/sc-pool-apy.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/v3/arbitrum/sc-pool-apy.js b/src/routes/v3/arbitrum/sc-pool-apy.js index 4343c5c..be4058f 100644 --- a/src/routes/v3/arbitrum/sc-pool-apy.js +++ b/src/routes/v3/arbitrum/sc-pool-apy.js @@ -203,8 +203,7 @@ async function fetchDataFromPostgres() { ORDER BY collateral_type, ts DESC ) SELECT * FROM latest_records - ORDER BY ts DESC - LIMIT 3;`, + ORDER BY ts DESC;`, ); const responseData = queryResult.rows.map((item) => ({