fix: wrong http method call
This commit is contained in:
parent
80b8d3f6cb
commit
6b877d44f1
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
||||||
return !(!res || res.status >= 400);
|
return !(!res || res.status >= 400);
|
||||||
}
|
}
|
||||||
async function deleteAttachment(employeeId: string, filename: string) {
|
async function deleteAttachment(employeeId: string, filename: string) {
|
||||||
const res = await api.put(
|
const res = await api.delete(
|
||||||
`/employee/${employeeId}/attachment/${filename}`,
|
`/employee/${employeeId}/attachment/${filename}`,
|
||||||
{ headers: { 'X-Rtid': flowStore.rtid } },
|
{ headers: { 'X-Rtid': flowStore.rtid } },
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue