refactor: update RoleMapping references

This commit is contained in:
Ali BARIN
2024-11-25 15:03:40 +00:00
parent ba82d986c1
commit ee397441ed
16 changed files with 80 additions and 71 deletions

View File

@@ -30,7 +30,7 @@ const findOrCreateUserBySamlIdentity = async (
: [mappedUser.role];
const samlAuthProviderRoleMapping = await samlAuthProvider
.$relatedQuery('samlAuthProvidersRoleMappings')
.$relatedQuery('roleMappings')
.whereIn('remote_role_name', mappedRoles)
.limit(1)
.first();