fix: เเก้ รับ date null

This commit is contained in:
Net 2024-03-18 17:23:59 +07:00
parent 9b0a5e9194
commit 169fada8ae
5 changed files with 80 additions and 106 deletions

View file

@ -76,29 +76,23 @@ export class ProfileDuty extends EntityBase {
}
export class CreateProfileDuty {
@Column("uuid")
profileId: string | null;
@Column()
isActive: boolean;
@Column()
dateStart: Date | null;
@Column()
dateEnd: Date | null;
@Column()
detail: string | null;
@Column()
reference: string | null;
@Column()
refCommandDate: Date | null;
@Column()
refCommandNo: string | null;
}
export type UpdateProfileDuty = Partial<CreateProfileDuty>;
export type UpdateProfileDuty = {
profileId: string | null;
isActive: boolean;
dateStart?: Date | null;
dateEnd?: Date | null;
detail: string | null;
reference: string | null;
refCommandDate?: Date | null;
refCommandNo: string | null;
};