This commit is contained in:
SPRINX0\prochazka 2024-10-01 12:17:36 +02:00
commit fd2a35fb4a

View File

@ -37,8 +37,8 @@ async function loadConnection(driver, storedConnection, connectionMode) {
if (allowConnectionFromEnvVariables) { if (allowConnectionFromEnvVariables) {
return _.mapValues(storedConnection, (value, key) => { return _.mapValues(storedConnection, (value, key) => {
if (_.isString(value) && value.startsWith('$')) { if (_.isString(value) && value.startsWith('${') && value.endsWith('}')) {
return process.env[value.substring(1)]; return process.env[value.slice(2, -1)];
} }
return value; return value;
}); });