🔨 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) { if (data) {
/* Set the key in the redis cache. */ /* Set the key in the redis cache. */
redisClient.set( redisClient.set(`servers_${hashStringMd5(id)}`, JSON.stringify(data));
`moreInfo_${hashStringMd5(id)}`,
JSON.stringify(data),
);
/* After 24hrs expire the key. */ /* After 24hrs expire the key. */
redisClient.expireat( redisClient.expireat(
`moreInfo_${hashStringMd5(id)}`, `servers_${hashStringMd5(id)}`,
new Date().getTime() + 86400000, new Date().getTime() + 86400000,
); );

Loading…
Cancel
Save