🔨 Error in the name hash in the getServers route

pull/33/head
capitanwesler 4 years ago
parent 2effa8e95c
commit 79114fa000

@ -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,
);

Loading…
Cancel
Save