Skip to content

Commit bfc194d

Browse files
authored
fix(cluster): issues when code is processed by babel (#1298)
Closes #1288
1 parent ee294b6 commit bfc194d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pipeline.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default function Pipeline(redis) {
3232
Commander.call(this);
3333

3434
this.redis = redis;
35-
this.isCluster = this.redis.constructor.name === "Cluster";
35+
this.isCluster =
36+
this.redis.constructor.name === "Cluster" || this.redis.isCluster;
3637
this.isPipeline = true;
3738
this.options = redis.options;
3839
this._queue = [];

0 commit comments

Comments
 (0)