diff --git a/lib/RateLimiterRedis.js b/lib/RateLimiterRedis.js index dc8c60c..d6f5b84 100644 --- a/lib/RateLimiterRedis.js +++ b/lib/RateLimiterRedis.js @@ -124,7 +124,7 @@ class RateLimiterRedis extends RateLimiterStoreAbstract { this.client.eval(this._incrTtlLuaScript, 1, rlKey, points, secDuration, this.points, this.duration, incrCallback); } }); - } else { + } else { return this.client.eval(this._incrTtlLuaScript, { keys: [rlKey], arguments: [String(points), String(secDuration), String(this.points), String(this.duration)],