mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 10:25:23 +00:00
Make jobTitle and phoneNumber optional in InviteUserEntity and DTO
This commit is contained in:
@ -34,7 +34,7 @@ export class InviteUserEntity extends AbstractEntity<InviteUserDto> {
|
|||||||
email: string;
|
email: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: true,
|
||||||
})
|
})
|
||||||
jobTitle: string;
|
jobTitle: string;
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ export class InviteUserEntity extends AbstractEntity<InviteUserDto> {
|
|||||||
})
|
})
|
||||||
public lastName: string;
|
public lastName: string;
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: true,
|
||||||
})
|
})
|
||||||
public phoneNumber: string;
|
public phoneNumber: string;
|
||||||
|
|
||||||
|
@ -38,16 +38,16 @@ export class AddUserInvitationDto {
|
|||||||
@ApiProperty({
|
@ApiProperty({
|
||||||
description: 'The job title of the user',
|
description: 'The job title of the user',
|
||||||
example: 'Software Engineer',
|
example: 'Software Engineer',
|
||||||
required: true,
|
required: false,
|
||||||
})
|
})
|
||||||
@IsString()
|
@IsString()
|
||||||
@IsNotEmpty()
|
@IsOptional()
|
||||||
public jobTitle: string;
|
public jobTitle?: string;
|
||||||
|
|
||||||
@ApiProperty({
|
@ApiProperty({
|
||||||
description: 'The phone number of the user',
|
description: 'The phone number of the user',
|
||||||
example: '+1234567890',
|
example: '+1234567890',
|
||||||
required: true,
|
required: false,
|
||||||
})
|
})
|
||||||
@IsString()
|
@IsString()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
|
Reference in New Issue
Block a user