Skip to content

Conversation

@jmgasper
Copy link
Contributor

@jmgasper jmgasper commented Nov 2, 2025

No description provided.

@jmgasper jmgasper merged commit 773b909 into master Nov 2, 2025
4 checks passed
// add user to initial groups
await this.addUserToDefaultGroups(prisma, nextUserId);
if (
userParams.profile?.provider?.toLowerCase() === WIPRO_SSO_PROVIDER
Copy link

Choose a reason for hiding this comment

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

[💡 correctness]
Consider using localeCompare for case-insensitive comparison instead of toLowerCase(), as it may handle locale-specific cases more accurately.

groupName: string,
) {
try {
const groupRecord = await prisma.security_groups.findFirst({
Copy link

Choose a reason for hiding this comment

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

[⚠️ maintainability]
The prisma parameter is typed as any. Consider specifying a more precise type to leverage TypeScript's type checking and improve maintainability.

userId,
Number(groupRecord.group_id),
);
} catch (error) {
Copy link

Choose a reason for hiding this comment

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

[⚠️ design]
Consider handling the error more explicitly, such as rethrowing it or returning a specific error response, to ensure that the caller is aware of the failure.

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.

2 participants