fix: แก้ รับ date null

This commit is contained in:
Net 2024-03-18 17:45:44 +07:00
parent b7b7e1bbd8
commit 5b2c56cb78
3 changed files with 53 additions and 92 deletions

View file

@ -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;
};