Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ const projectServiceUtils = {
}).then((res) => {
const roles = res.data;
logger.debug(`Roles by ${roleName}: ${JSON.stringify(roles)}`);
return roles
return roles.result.content

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Ensure that roles.result.content is always defined and has the expected structure before accessing it. Consider adding a check to handle cases where result or content might be undefined, which could lead to runtime errors.

.filter(item => item.roleName === roleName)
.map(r => r.id);
});
Expand Down