diff --git a/CommonServer/Services/TeamPermissionService.ts b/CommonServer/Services/TeamPermissionService.ts index f22ce9aa0f..3f15d91ed1 100644 --- a/CommonServer/Services/TeamPermissionService.ts +++ b/CommonServer/Services/TeamPermissionService.ts @@ -129,6 +129,7 @@ export class Service extends DatabaseService { }, select: { userId: true, + projectId: true, }, props: { isRoot: true, @@ -144,7 +145,7 @@ export class Service extends DatabaseService { ); await AccessTokenService.refreshUserTenantAccessPermission( member.userId!, - permission.data.projectId! + permission.projectId! ); } }