refactor: delete codeCustomer and statusSave

This commit is contained in:
Thanaphon Frappet 2024-10-10 13:33:54 +07:00
parent d15bb7ef6f
commit 3c66ca2a46

View file

@ -385,15 +385,7 @@ const useCustomerStore = defineStore('api-customer', () => {
if (!data.birthDate) delete data['birthDate'];
if (!data.registerDate) delete data['registerDate'];
const {
codeCustomer,
statusSave,
code,
file,
birthDate,
citizen,
...payload
} = data;
const { code, file, birthDate, citizen, ...payload } = data;
const res = await api.post<CustomerBranch>('/customer-branch', payload);
if (!res) return false;