From 1c9778e667208e7f5f1fc634d29c737f751899d2 Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Fri, 11 Jul 2025 09:59:56 +0100 Subject: [PATCH] fix members page crash with pbac feature flag (#22409) --- .../features/pbac/infrastructure/mappers/RoleOutputMapper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/features/pbac/infrastructure/mappers/RoleOutputMapper.ts b/packages/features/pbac/infrastructure/mappers/RoleOutputMapper.ts index 32f565c82b..4281f72951 100644 --- a/packages/features/pbac/infrastructure/mappers/RoleOutputMapper.ts +++ b/packages/features/pbac/infrastructure/mappers/RoleOutputMapper.ts @@ -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); } }