From a3b749084995359a5a9a9d4dd2ffe5f93f2fc46b Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Fri, 9 Aug 2024 08:30:15 +0200 Subject: [PATCH] allowedDatabases fix --- packages/api/src/controllers/connections.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/controllers/connections.js b/packages/api/src/controllers/connections.js index 24af4a86..9c262213 100644 --- a/packages/api/src/controllers/connections.js +++ b/packages/api/src/controllers/connections.js @@ -72,7 +72,7 @@ function getPortalCollections() { displayName: process.env[`LABEL_${id}`], isReadOnly: process.env[`READONLY_${id}`], databases: process.env[`DBCONFIG_${id}`] ? safeJsonParse(process.env[`DBCONFIG_${id}`]) : null, - allowedDatabases: process.env[`ALLOWED_DATABASES_${id}`]?.replace(/|/g, '\n'), + allowedDatabases: process.env[`ALLOWED_DATABASES_${id}`]?.replace(/\|/g, '\n'), allowedDatabasesRegex: process.env[`ALLOWED_DATABASES_REGEX_${id}`], parent: process.env[`PARENT_${id}`] || undefined,