Explorar el Código

Do not use password if redis password is not provided. Resolves #176

Pouria hace 6 años
padre
commit
f2dd674e2a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server/redis.js

+ 1 - 1
server/redis.js

@@ -10,7 +10,7 @@ if (config.REDIS_DISABLED === true) {
   const client = redis.createClient({
     host: config.REDIS_HOST || '127.0.0.1',
     port: config.REDIS_PORT || 6379,
-    password: config.REDIS_PASSWORD || '',
+    ...(config.REDIS_PASSWORD && { password: config.REDIS_PASSWORD }),
   });
 
   exports.get = promisify(client.get).bind(client);