From bfc194dcad2af527e802d6f5b060f0b0779e840d Mon Sep 17 00:00:00 2001 From: Zihua Li Date: Sun, 14 Mar 2021 12:52:19 +0800 Subject: [PATCH] fix(cluster): issues when code is processed by babel (#1298) Closes #1288 --- lib/pipeline.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pipeline.ts b/lib/pipeline.ts index 44ac4a06..e0adfa5d 100644 --- a/lib/pipeline.ts +++ b/lib/pipeline.ts @@ -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 = [];