fixed an error on redis js of undefined err
This commit is contained in:
@@ -14,7 +14,7 @@ const client = createClient({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.on('connect', () => logger.info('Connected to redis'));
|
client.on('connect', () => logger.info('Connected to redis'));
|
||||||
client.on('error', () => logger.error(err, 'Redis error'));
|
client.on('error', (err) => logger.error(err, 'Redis error'));
|
||||||
client.on('ready', () => logger.info('Redis client ready'));
|
client.on('ready', () => logger.info('Redis client ready'));
|
||||||
client.on('end', () => logger.info('Redis connection closed'));
|
client.on('end', () => logger.info('Redis connection closed'));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user