From 79114fa00055f3f34f46309206c4f0dd8e674a8d Mon Sep 17 00:00:00 2001 From: capitanwesler Date: Mon, 22 Mar 2021 21:07:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Error=20in=20the=20name=20hash?= =?UTF-8?q?=20in=20the=20getServers=20route?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/AnimeController.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/controllers/AnimeController.ts b/src/controllers/AnimeController.ts index 88ea965..3ef0549 100644 --- a/src/controllers/AnimeController.ts +++ b/src/controllers/AnimeController.ts @@ -291,15 +291,12 @@ export default class AnimeController { if (data) { /* Set the key in the redis cache. */ - redisClient.set( - `moreInfo_${hashStringMd5(id)}`, - JSON.stringify(data), - ); + redisClient.set(`servers_${hashStringMd5(id)}`, JSON.stringify(data)); /* After 24hrs expire the key. */ redisClient.expireat( - `moreInfo_${hashStringMd5(id)}`, + `servers_${hashStringMd5(id)}`, new Date().getTime() + 86400000, );