diff --git a/src/core/db/redis-client.ts b/src/core/db/redis-client.ts index 3a14ccc2..5edae787 100644 --- a/src/core/db/redis-client.ts +++ b/src/core/db/redis-client.ts @@ -64,6 +64,7 @@ class RedisClientFactory { public createClient(databaseIndex = 0): RedisClient { const client = new RedisClient({ host: this.database, + password: (this.password) ? this.password : undefined, retry_strategy: (options) => { return 5000; } @@ -82,11 +83,6 @@ class RedisClientFactory { this.eventBus.emit(new DatabaseReconnectEvent(databaseIndex)); }); - // set authentication if available - if (this.password) { - client.auth(this.password); - } - client.select(databaseIndex); this.registeredClients.push(client);