fix: preven zipCode from send to api
This commit is contained in:
parent
76aeee0aef
commit
5a8557c314
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
}
|
||||
|
||||
async function create(data: EmployeeCreate) {
|
||||
const { id, code, image, file, ...payload } = data;
|
||||
const { id, code, image, file, zipCode, ...payload } = data;
|
||||
const res = await api.post<
|
||||
Employee & { profileImageUrl: string; profileImageUploadUrl: string }
|
||||
>('/employee', payload, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue