diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index 60ba388a..f02c67e5 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -307,13 +307,15 @@ const useCustomerStore = defineStore('api-customer', () => { transactionId?: string; }, ) { + const { code, ...playload } = data; + const res = await api.post< Customer & { branch: CustomerBranch[]; imageUrl: string; imageUploadUrl: string; } - >('/customer-branch', data, { + >('/customer-branch', playload, { headers: { 'X-Session-Id': flow?.sessionId, 'X-Rtid': flow?.refTransactionId || flowStore.rtid,