From 3820358dfdf128a21175f3224d7595fe95229fc6 Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Thu, 20 Oct 2022 18:18:37 +0100 Subject: [PATCH] Update BL star rating key --- pages/api/beatleader/stars.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api/beatleader/stars.js b/pages/api/beatleader/stars.js index c676462..bdfb170 100644 --- a/pages/api/beatleader/stars.js +++ b/pages/api/beatleader/stars.js @@ -18,7 +18,7 @@ export default async function handler(req, res) { const exists = await RedisUtils.exists(`${KEY}${mapHash}`); if (exists) { const data = await RedisUtils.getValue( - `${KEY}-${difficulty}-${characteristic}-${mapHash}` + `${KEY}${difficulty}-${characteristic}-${mapHash}` ); res.setHeader("Cache-Status", "hit"); @@ -46,7 +46,7 @@ export default async function handler(req, res) { } const json = await data.json(); RedisUtils.setValue( - `${KEY}-${difficulty}-${characteristic}-${mapHash}`, + `${KEY}${difficulty}-${characteristic}-${mapHash}`, json.difficulty.stars ); res.setHeader("Cache-Status", "miss");