fix: update field can be optional

This commit is contained in:
Methapon Metanipat 2024-08-27 13:28:51 +07:00
parent 7e03c239d3
commit 5cadf48bc3

View file

@ -54,14 +54,14 @@ export type CustomerUpdate = {
status?: "ACTIVE" | "INACTIVE";
customerType: CustomerType;
namePrefix: string;
firstName: string;
customerType?: CustomerType;
namePrefix?: string;
firstName?: string;
firstNameEN?: string;
lastName: string;
lastName?: string;
lastNameEN?: string;
gender: string;
birthDate: Date;
gender?: string;
birthDate?: Date;
};
function imageLocation(id: string) {