Skip to content

Commit

Permalink
fix(cluster): issues when code is processed by babel (#1298)
Browse files Browse the repository at this point in the history
Closes #1288
  • Loading branch information
luin authored Mar 14, 2021
1 parent ee294b6 commit bfc194d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export default function Pipeline(redis) {
Commander.call(this);

this.redis = redis;
this.isCluster = this.redis.constructor.name === "Cluster";
this.isCluster =
this.redis.constructor.name === "Cluster" || this.redis.isCluster;
this.isPipeline = true;
this.options = redis.options;
this._queue = [];
Expand Down

0 comments on commit bfc194d

Please sign in to comment.