fix: add blank to username/password if undefined

This commit is contained in:
Kristoffer
2023-08-30 13:54:13 +00:00
parent c23d668e18
commit c642b31aef

View File

@@ -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']}`;
}