1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

fix cluster.sUnsubscribe - make listener optional

This commit is contained in:
Clubsandwich
2023-11-21 03:40:38 +09:00
committed by GitHub
parent e91509a3e1
commit 623b56b5ca

View File

@@ -371,7 +371,7 @@ export default class RedisCluster<
SUNSUBSCRIBE<T extends boolean = false>( SUNSUBSCRIBE<T extends boolean = false>(
channels: string | Array<string>, channels: string | Array<string>,
listener: PubSubListener<T>, listener?: PubSubListener<T>,
bufferMode?: T bufferMode?: T
) { ) {
return this.#slots.executeShardedUnsubscribeCommand( return this.#slots.executeShardedUnsubscribeCommand(