mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-25 04:47:54 +00:00
Rename userUuid to invitedUserUuid in project-user controller and service
This commit is contained in:
@@ -67,13 +67,13 @@ export class ProjectUserService {
|
||||
}
|
||||
async getUserByUuidInProject(
|
||||
projectUuid: string,
|
||||
userUuid: string,
|
||||
invitedUserUuid: string,
|
||||
): Promise<BaseResponseDto> {
|
||||
try {
|
||||
const user = await this.inviteUserRepository.findOne({
|
||||
where: {
|
||||
project: { uuid: projectUuid },
|
||||
uuid: userUuid,
|
||||
uuid: invitedUserUuid,
|
||||
isActive: true,
|
||||
},
|
||||
select: [
|
||||
@@ -92,7 +92,7 @@ export class ProjectUserService {
|
||||
|
||||
if (!user) {
|
||||
throw new HttpException(
|
||||
`User with ID ${userUuid} not found in project ${projectUuid}`,
|
||||
`User with ID ${invitedUserUuid} not found in project ${projectUuid}`,
|
||||
HttpStatus.NOT_FOUND,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user