From ca1ccff10be5ef0443e3104365edb7e017873077 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 25 Nov 2024 13:55:07 +0100 Subject: [PATCH 1/4] fix: refs #7229 update env col for consistency --- db/dump/fixtures.before.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/dump/fixtures.before.sql b/db/dump/fixtures.before.sql index e5d5f53dc..679d8e6cd 100644 --- a/db/dump/fixtures.before.sql +++ b/db/dump/fixtures.before.sql @@ -3011,10 +3011,10 @@ INSERT INTO `vn`.`profileType` (`id`, `name`) INSERT INTO `salix`.`url` (`appName`, `environment`, `url`) VALUES - ('lilium', 'development', 'http://localhost:9000/#/'), - ('hedera', 'development', 'http://localhost:9090/'), - ('salix', 'development', 'http://localhost:5000/#!/'), - ('docuware', 'development', 'http://docuware'); + ('lilium', 'dev', 'http://localhost:9000/#/'), + ('hedera', 'dev', 'http://localhost:9090/'), + ('salix', 'dev', 'http://localhost:5000/#!/'), + ('docuware', 'dev', 'http://docuware'); INSERT INTO `vn`.`report` (`id`, `name`, `paperSizeFk`, `method`) VALUES From 9da5b4ecda750218bf685602810819ccc9a78c8b Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 25 Nov 2024 14:05:12 +0100 Subject: [PATCH 2/4] fix: refs #7229 update default environment --- back/methods/url/getByUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/methods/url/getByUser.js b/back/methods/url/getByUser.js index dd4805182..9997794f8 100644 --- a/back/methods/url/getByUser.js +++ b/back/methods/url/getByUser.js @@ -26,7 +26,7 @@ module.exports = function(Self) { fields: ['appName', 'url'], where: { appName: {inq: appNames}, - environment: process.env.NODE_ENV ?? 'development', + environment: process.env.NODE_ENV ?? 'dev', } }; From a68d7e8c0b1559b8e0da5569c98fecbdaabc4e88 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 25 Nov 2024 14:15:10 +0100 Subject: [PATCH 3/4] fix: refs #7229 rollback --- back/methods/url/getByUser.js | 2 +- db/dump/fixtures.before.sql | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/back/methods/url/getByUser.js b/back/methods/url/getByUser.js index 9997794f8..dd4805182 100644 --- a/back/methods/url/getByUser.js +++ b/back/methods/url/getByUser.js @@ -26,7 +26,7 @@ module.exports = function(Self) { fields: ['appName', 'url'], where: { appName: {inq: appNames}, - environment: process.env.NODE_ENV ?? 'dev', + environment: process.env.NODE_ENV ?? 'development', } }; diff --git a/db/dump/fixtures.before.sql b/db/dump/fixtures.before.sql index 679d8e6cd..e5d5f53dc 100644 --- a/db/dump/fixtures.before.sql +++ b/db/dump/fixtures.before.sql @@ -3011,10 +3011,10 @@ INSERT INTO `vn`.`profileType` (`id`, `name`) INSERT INTO `salix`.`url` (`appName`, `environment`, `url`) VALUES - ('lilium', 'dev', 'http://localhost:9000/#/'), - ('hedera', 'dev', 'http://localhost:9090/'), - ('salix', 'dev', 'http://localhost:5000/#!/'), - ('docuware', 'dev', 'http://docuware'); + ('lilium', 'development', 'http://localhost:9000/#/'), + ('hedera', 'development', 'http://localhost:9090/'), + ('salix', 'development', 'http://localhost:5000/#!/'), + ('docuware', 'development', 'http://docuware'); INSERT INTO `vn`.`report` (`id`, `name`, `paperSizeFk`, `method`) VALUES From 584287b2119ec7d8c5e656e9e106099d684c697c Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 25 Nov 2024 14:20:15 +0100 Subject: [PATCH 4/4] fix: refs #7229 update default environment --- back/methods/url/getUrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/methods/url/getUrl.js b/back/methods/url/getUrl.js index 5c6e5655f..fa3f7fdad 100644 --- a/back/methods/url/getUrl.js +++ b/back/methods/url/getUrl.js @@ -22,7 +22,7 @@ module.exports = Self => { const url = await Self.app.models.Url.findOne({ where: { appName, - environment: process.env.NODE_ENV || 'dev' + environment: process.env.NODE_ENV || 'development' } }); return url?.url;