mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 12:37:00 +03:00
Don't crash if redis message invalid
This commit is contained in:
@@ -276,7 +276,7 @@ async function setupCacheClientListener(cacheClient: RedisClientType,
|
||||
cacheConnectionClientId = String(await cacheClient.clientId());
|
||||
|
||||
cacheClient.subscribe("__redis__:invalidate", (messages) => {
|
||||
cache.delete(messages[0]);
|
||||
cache.delete(messages?.[0]);
|
||||
}).catch(Logger.error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user