Skip to content

Conversation

@hentrymartin
Copy link
Collaborator

What's in this PR?

  • Identity service v6 returns data in a different structure than v5. This PR fixes the consumption logic to use the proper v6 structure.

Ticket link - https://topcoder.atlassian.net/browse/PM-2435

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.

@kkartunov kkartunov merged commit fe03534 into develop Oct 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants