From 5cadf48bc3e513684351d71054006d9ef25e4912 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Tue, 27 Aug 2024 13:28:51 +0700 Subject: [PATCH] fix: update field can be optional --- src/controllers/customer-controller.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controllers/customer-controller.ts b/src/controllers/customer-controller.ts index 32efafe..d4025ca 100644 --- a/src/controllers/customer-controller.ts +++ b/src/controllers/customer-controller.ts @@ -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) {