fix: input type not matched with db

This commit is contained in:
Methapon2001 2024-04-05 14:27:38 +07:00
parent 6adc961352
commit d43ac9f54e

View file

@ -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")