Fix redis rate limiter

Fixes #835
This commit is contained in:
rijkvanzanten
2020-11-03 18:19:29 -05:00
parent e743b5d0d1
commit 79cdd62f18

View File

@@ -63,6 +63,7 @@ function getConfig(
if (store === 'redis') {
const Redis = require('ioredis');
delete config.redis;
config.storeClient = new Redis(
env.RATE_LIMITER_REDIS || getConfigFromEnv('RATE_LIMITER_REDIS_')
);