Skip to content

Commit

Permalink
fix: added back disconnectRequired flag assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide-Gheri committed Apr 4, 2023
1 parent cdd4b91 commit bd5587a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/throttler-storage-redis.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ export class ThrottlerStorageRedisService implements ThrottlerStorageRedis, OnMo
this.redis = redisOrOptions;
} else if (typeof redisOrOptions === 'string') {
this.redis = new Redis(redisOrOptions as string);
this.disconnectRequired = true;
} else {
this.redis = new Redis(redisOrOptions as RedisOptions);
this.disconnectRequired = true;
}

this.scriptSrc = this.getScriptSrc();
Expand Down

0 comments on commit bd5587a

Please sign in to comment.