fix: wrong http method call

This commit is contained in:
Methapon Metanipat 2024-08-28 16:42:04 +07:00
parent 80b8d3f6cb
commit 6b877d44f1

View file

@ -420,7 +420,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
return !(!res || res.status >= 400);
}
async function deleteAttachment(employeeId: string, filename: string) {
const res = await api.put(
const res = await api.delete(
`/employee/${employeeId}/attachment/${filename}`,
{ headers: { 'X-Rtid': flowStore.rtid } },
);