From 23d2ade763dd81351a98fdadbf85672895ed4869 Mon Sep 17 00:00:00 2001 From: Net Date: Fri, 2 Aug 2024 10:01:44 +0700 Subject: [PATCH] refactor: I don't send id and statusSave on Create --- src/stores/customer/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index dd3f0bc2..0817965f 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -307,7 +307,7 @@ const useCustomerStore = defineStore('api-customer', () => { transactionId?: string; }, ) { - const { code, ...playload } = data; + const { id, statusSave , code, ...playload } = data; const res = await api.post< Customer & {