redis fix
This commit is contained in:
parent
b51a38325f
commit
ffd7ffbe3c
|
@ -12,7 +12,7 @@ redis.on('ready', async function () {
|
||||||
|
|
||||||
const keys = await redis.keys('*')
|
const keys = await redis.keys('*')
|
||||||
const filteredKeys = keys.filter(key => !key.startsWith('blacklist:'))
|
const filteredKeys = keys.filter(key => !key.startsWith('blacklist:'))
|
||||||
await redis.del(filteredKeys)
|
if (filteredKeys.length) await redis.del(filteredKeys)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue