From edae87d28f498eb7bbc81f9a50a390548004ddc8 Mon Sep 17 00:00:00 2001 From: Alexandru Cambose Date: Tue, 19 Aug 2025 13:51:47 +0200 Subject: [PATCH] fix: uncache getHistoricalPrices --- apps/insights/src/services/clickhouse.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/insights/src/services/clickhouse.ts b/apps/insights/src/services/clickhouse.ts index 58aae23a27..c0b3b2521a 100644 --- a/apps/insights/src/services/clickhouse.ts +++ b/apps/insights/src/services/clickhouse.ts @@ -213,6 +213,7 @@ const _getPublisherRankingHistory = async ({ }, ); +// note that this is not cached as the `from`/`to` params are unix timestamps export const getFeedScoreHistory = async ({ cluster, publisherKey, @@ -335,7 +336,8 @@ export const _getPublisherAverageScoreHistory = async ({ }, ); -const _getHistoricalPrices = async ({ +// note that this is not cached as the `until` param is a unix timestamp +export const getHistoricalPrices = async ({ symbol, until, }: { @@ -402,11 +404,6 @@ export const getPublisherRankingHistory = redisCache.define( _getPublisherRankingHistory, ).getPublisherRankingHistory; -export const getHistoricalPrices = redisCache.define( - "getHistoricalPrices", - _getHistoricalPrices, -).getHistoricalPrices; - export const getFeedPriceHistory = redisCache.define( "getFeedPriceHistory", _getFeedPriceHistory,