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;
|
if (!listeners.strings.size) return;
|
||||||
|
|
||||||
// https://github.com/redis/redis/pull/7469
|
const channelString = pattern ? channel.toString() : keyString,
|
||||||
// https://github.com/redis/redis/issues/7463
|
messageString = channelString === '__redis__:invalidate' ?
|
||||||
const messageString = (Array.isArray(message) ? message.map(m => m.toString()) as any : message.toString()),
|
// https://github.com/redis/redis/pull/7469
|
||||||
channelString = pattern ? channel.toString() : keyString;
|
// https://github.com/redis/redis/issues/7463
|
||||||
|
(message === null ? null : (message as any as Array<Buffer>).map(x => x.toString())) as any :
|
||||||
|
message.toString();
|
||||||
for (const listener of listeners.strings) {
|
for (const listener of listeners.strings) {
|
||||||
listener(messageString, channelString);
|
listener(messageString, channelString);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user