fix: แก้ รับ date null
This commit is contained in:
parent
b7b7e1bbd8
commit
5b2c56cb78
3 changed files with 53 additions and 92 deletions
|
|
@ -18,7 +18,7 @@ export class ProfileOther extends EntityBase {
|
|||
default: false,
|
||||
})
|
||||
isActive: boolean;
|
||||
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "รายละเอียด",
|
||||
|
|
@ -44,17 +44,15 @@ export class ProfileOther extends EntityBase {
|
|||
}
|
||||
|
||||
export class CreateProfileOther {
|
||||
@Column("uuid")
|
||||
profileId: string | null;
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
@Column()
|
||||
detail: string | null;
|
||||
|
||||
@Column()
|
||||
date: Date | null;
|
||||
}
|
||||
|
||||
export type UpdateProfileOther = Partial<CreateProfileOther>;
|
||||
export type UpdateProfileOther = {
|
||||
profileId: string | null;
|
||||
isActive: boolean;
|
||||
detail: string | null;
|
||||
date?: Date | null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue