fix members page crash with pbac feature flag (#22409)
This commit is contained in:
1 parent
758143ef70
commit
1c9778e667
1 file changed
+2
-2
@@ -11,7 +11,7 @@ export class RoleOutputMapper {
|
||||
description: prismaRole.description || undefined,
|
||||
teamId: prismaRole.teamId || undefined,
|
||||
type: prismaRole.type,
|
||||
permissions: prismaRole.permissions.map(this.toDomainPermission),
|
||||
permissions: prismaRole.permissions.map(RoleOutputMapper.toDomainPermission),
|
||||
createdAt: prismaRole.createdAt,
|
||||
updatedAt: prismaRole.updatedAt,
|
||||
};
|
||||
@@ -28,6 +28,6 @@ export class RoleOutputMapper {
|
||||
}
|
||||
|
||||
static toDomainList(prismaRoles: (PrismaRole & { permissions: PrismaRolePermission[] })[]): Role[] {
|
||||
return prismaRoles.map(this.toDomain);
|
||||
return prismaRoles.map(RoleOutputMapper.toDomain);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user