redis fix

This commit is contained in:
unknown 2023-03-25 14:20:43 +01:00
parent b51a38325f
commit ffd7ffbe3c
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ redis.on('ready', async function () {
const keys = await redis.keys('*')
const filteredKeys = keys.filter(key => !key.startsWith('blacklist:'))
await redis.del(filteredKeys)
if (filteredKeys.length) await redis.del(filteredKeys)
});