From 0160645f70d793ccec9dda2ce29e0efa2640e301 Mon Sep 17 00:00:00 2001 From: Hentry Martin Date: Mon, 20 Oct 2025 11:06:23 +0200 Subject: [PATCH 1/5] debug email notifications --- src/routes/copilotOpportunityApply/create.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/copilotOpportunityApply/create.js b/src/routes/copilotOpportunityApply/create.js index 2364e0340..806ddb83f 100644 --- a/src/routes/copilotOpportunityApply/create.js +++ b/src/routes/copilotOpportunityApply/create.js @@ -78,6 +78,7 @@ module.exports = [ const pmRole = await util.getRolesByRoleName(USER_ROLE.PROJECT_MANAGER, req.log, req.id); const { subjects = [] } = await util.getRoleInfo(pmRole[0], req.log, req.id); + req.log.info(JSON.stringify(subjects), 'subjects'); const creator = await util.getMemberDetailsByUserIds([opportunity.createdBy], req.log, req.id); const listOfSubjects = subjects; From 75ca73d1df4f4950793ef31626f100728bc5da01 Mon Sep 17 00:00:00 2001 From: Hentry Martin Date: Mon, 20 Oct 2025 11:07:03 +0200 Subject: [PATCH 2/5] debug email notifications --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 96e8ba80b..4d5cb2201 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -149,7 +149,7 @@ workflows: context : org-global filters: branches: - only: ['develop', 'migration-setup', 'PM-1612', 'fix-2321'] + only: ['develop', 'migration-setup', 'PM-1612', 'fix-2321', 'pm-2435'] - deployProd: context : org-global filters: From c3626b8ece988867dddf79474c207ff443518ae8 Mon Sep 17 00:00:00 2001 From: Hentry Martin Date: Mon, 20 Oct 2025 13:06:59 +0200 Subject: [PATCH 3/5] debug email notifications --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 98e097c7f..3acb3644d 100644 --- a/src/util.js +++ b/src/util.js @@ -853,7 +853,7 @@ const projectServiceUtils = { Authorization: `Bearer ${token}`, }, }).then((res) => { - const roles = res.data; + const roles = res.result.content; logger.debug(`Roles by ${roleName}: ${JSON.stringify(roles)}`); return roles .filter(item => item.roleName === roleName) From 3ac9e522eedb130eb54a26d2dfc60be2436cd4d2 Mon Sep 17 00:00:00 2001 From: Hentry Martin Date: Mon, 20 Oct 2025 13:07:51 +0200 Subject: [PATCH 4/5] debug email notifications --- src/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.js b/src/util.js index 3acb3644d..51c5bb7ab 100644 --- a/src/util.js +++ b/src/util.js @@ -853,9 +853,9 @@ const projectServiceUtils = { Authorization: `Bearer ${token}`, }, }).then((res) => { - const roles = res.result.content; + const roles = res.data; logger.debug(`Roles by ${roleName}: ${JSON.stringify(roles)}`); - return roles + return roles.result.content .filter(item => item.roleName === roleName) .map(r => r.id); }); From 3df65270c180f3043202d99017ec88ada4ba501f Mon Sep 17 00:00:00 2001 From: Hentry Martin Date: Wed, 22 Oct 2025 03:03:27 +0200 Subject: [PATCH 5/5] fix: removed debug logs --- src/routes/copilotOpportunityApply/create.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/routes/copilotOpportunityApply/create.js b/src/routes/copilotOpportunityApply/create.js index 806ddb83f..2364e0340 100644 --- a/src/routes/copilotOpportunityApply/create.js +++ b/src/routes/copilotOpportunityApply/create.js @@ -78,7 +78,6 @@ module.exports = [ const pmRole = await util.getRolesByRoleName(USER_ROLE.PROJECT_MANAGER, req.log, req.id); const { subjects = [] } = await util.getRoleInfo(pmRole[0], req.log, req.id); - req.log.info(JSON.stringify(subjects), 'subjects'); const creator = await util.getMemberDetailsByUserIds([opportunity.createdBy], req.log, req.id); const listOfSubjects = subjects;