Merge branch 'dev' into SP-986-be-send-email-for-inviting-user-role

This commit is contained in:
faris Aljohari
2024-12-30 19:02:09 -06:00
131 changed files with 3285 additions and 1938 deletions

View File

@ -38,16 +38,16 @@ export class AddUserInvitationDto {
@ApiProperty({
description: 'The job title of the user',
example: 'Software Engineer',
required: true,
required: false,
})
@IsString()
@IsNotEmpty()
public jobTitle: string;
@IsOptional()
public jobTitle?: string;
@ApiProperty({
description: 'The phone number of the user',
example: '+1234567890',
required: true,
required: false,
})
@IsString()
@IsOptional()

View File

@ -49,6 +49,7 @@ export class InviteUserService {
try {
const userRepo = queryRunner.manager.getRepository(UserEntity);
await this.checkEmailAndProject({ email });
const user = await userRepo.findOne({
where: {