Pārlūkot izejas kodu

fix: uncache getHistoricalPrices

Alexandru Cambose 3 mēneši atpakaļ
vecāks
revīzija
edae87d28f
1 mainītis faili ar 3 papildinājumiem un 6 dzēšanām
  1. 3 6
      apps/insights/src/services/clickhouse.ts

+ 3 - 6
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,