From d43ac9f54e75f2af6eb1530951c9a1d1739dec20 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 5 Apr 2024 14:27:38 +0700 Subject: [PATCH] fix: input type not matched with db --- src/controllers/customer-branch-controller.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/controllers/customer-branch-controller.ts b/src/controllers/customer-branch-controller.ts index 06682e0..ce26649 100644 --- a/src/controllers/customer-branch-controller.ts +++ b/src/controllers/customer-branch-controller.ts @@ -32,7 +32,6 @@ function imageLocation(id: string) { type CustomerBranchCreate = { customerId: string; - code: string; status?: Status; branchNo: string; @@ -56,13 +55,11 @@ type CustomerBranchCreate = { subDistrictId?: string | null; districtId?: string | null; provinceId?: string | null; - headOfficeId?: string | null; }; type CustomerBranchUpdate = { customerId?: string; - code?: string; status?: "ACTIVE" | "INACTIVE"; branchNo?: string; @@ -86,7 +83,6 @@ type CustomerBranchUpdate = { subDistrictId?: string | null; districtId?: string | null; provinceId?: string | null; - headOfficeId?: string | null; }; @Route("api/customer-branch")