From b56c8fc3d461e6910ceae17e025bfbcbbdc41dc2 Mon Sep 17 00:00:00 2001 From: HF Date: Sat, 24 Sep 2022 15:23:10 +0200 Subject: [PATCH] fix first daily rank key --- src/data/redis/ranks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/redis/ranks.js b/src/data/redis/ranks.js index d3b7d57e..1e6b0a21 100644 --- a/src/data/redis/ranks.js +++ b/src/data/redis/ranks.js @@ -122,7 +122,7 @@ export async function getTopDailyHistory() { for (let c = 0; c < 14; c += 1) { if (!ts) { ts = Date.now(); - key = DAY_STATS_RANKS_KEY; + key = DAILY_RANKED_KEY; } else { ts -= 1000 * 3600 * 24; const dateKey = getDateKeyOfTs(ts); @@ -160,7 +160,7 @@ export async function getCountryDailyHistory() { for (let c = 0; c < 14; c += 1) { if (!ts) { ts = Date.now(); - key = CDAY_STATS_RANKS_KEY; + key = DAILY_CRANKED_KEY; } else { ts -= 1000 * 3600 * 24; const dateKey = getDateKeyOfTs(ts);