refactor: Update TeamPermissionService to include projectId in select props

This code change updates the TeamPermissionService to include the "projectId" property in the select props when querying for team members. This ensures that the "projectId" value is retrieved along with the "userId" value, allowing for easier access to the project ID in subsequent code logic.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
This commit is contained in:
Simon Larsen 2024-05-31 21:52:01 +01:00
parent cab9fd08fa
commit 7e51da56f6
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA

View File

@ -129,6 +129,7 @@ export class Service extends DatabaseService<Model> {
},
select: {
userId: true,
projectId: true,
},
props: {
isRoot: true,
@ -144,7 +145,7 @@ export class Service extends DatabaseService<Model> {
);
await AccessTokenService.refreshUserTenantAccessPermission(
member.userId!,
permission.data.projectId!
permission.projectId!
);
}
}