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

make cluster.connect() return this

This commit is contained in:
Leibale Eidelman
2024-01-16 15:16:51 -05:00
committed by GitHub
parent c1fc0feed0
commit 0f188a4eec

View File

@@ -375,8 +375,9 @@ export default class RedisCluster<
}) as RedisClusterType<_M, _F, _S, _RESP, _TYPE_MAPPING>; }) as RedisClusterType<_M, _F, _S, _RESP, _TYPE_MAPPING>;
} }
connect() { async connect() {
return this._self.#slots.connect(); await this._self.#slots.connect();
return this as unknown as RedisClusterType<M, F, S, RESP, TYPE_MAPPING>;
} }
withCommandOptions< withCommandOptions<