fix: add blank to username/password if undefined
This commit is contained in:
@@ -29,7 +29,7 @@ function getCache(): Keyv | null {
|
||||
uri = env['REDIS']
|
||||
|
||||
if(uri == null || uri === '') {
|
||||
uri = `redis://${env['REDIS_USERNAME'] }:${env['REDIS_PASSWORD'] || ''}@${env['REDIS_HOST']}:${env['REDIS_PORT']}`;
|
||||
uri = `redis://${env['REDIS_USERNAME'] || '' }:${env['REDIS_PASSWORD'] || ''}@${env['REDIS_HOST']}:${env['REDIS_PORT']}`;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user