You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
@@ -82,10 +82,12 @@ export default class RedisCommandsQueue {
|
||||
|
||||
if (!listeners.strings.size) return;
|
||||
|
||||
const channelString = pattern ? channel.toString() : keyString,
|
||||
messageString = channelString === '__redis__:invalidate' ?
|
||||
// https://github.com/redis/redis/pull/7469
|
||||
// https://github.com/redis/redis/issues/7463
|
||||
const messageString = (Array.isArray(message) ? message.map(m => m.toString()) as any : message.toString()),
|
||||
channelString = pattern ? channel.toString() : keyString;
|
||||
(message === null ? null : (message as any as Array<Buffer>).map(x => x.toString())) as any :
|
||||
message.toString();
|
||||
for (const listener of listeners.strings) {
|
||||
listener(messageString, channelString);
|
||||
}
|
||||
|
Reference in New Issue
Block a user