mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
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:
parent
cab9fd08fa
commit
7e51da56f6
@ -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!
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user