mirror of
https://github.com/hexastack/hexabot
synced 2025-04-09 23:44:34 +00:00
fix: update user.dto state property
This commit is contained in:
parent
7489648bae
commit
e5e5495a42
@ -62,12 +62,21 @@ export class UserCreateDto {
|
|||||||
@IsString()
|
@IsString()
|
||||||
@IsObjectId({ message: 'Avatar must be a valid ObjectId' })
|
@IsObjectId({ message: 'Avatar must be a valid ObjectId' })
|
||||||
avatar: string | null = null;
|
avatar: string | null = null;
|
||||||
|
|
||||||
|
@ApiPropertyOptional({
|
||||||
|
description: 'User state',
|
||||||
|
type: Boolean,
|
||||||
|
})
|
||||||
|
@IsOptional()
|
||||||
|
@IsBoolean()
|
||||||
|
state?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UserEditProfileDto extends OmitType(PartialType(UserCreateDto), [
|
export class UserEditProfileDto extends OmitType(PartialType(UserCreateDto), [
|
||||||
'username',
|
'username',
|
||||||
'roles',
|
'roles',
|
||||||
'avatar',
|
'avatar',
|
||||||
|
'state',
|
||||||
]) {
|
]) {
|
||||||
@ApiPropertyOptional({ description: 'User language', type: String })
|
@ApiPropertyOptional({ description: 'User language', type: String })
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
|
Loading…
Reference in New Issue
Block a user