refactor: edit url deleteAttachment

This commit is contained in:
Net 2024-08-28 17:34:19 +07:00 committed by Methapon Metanipat
parent 4b6feae65e
commit 3a1c0aba63

View file

@ -231,7 +231,7 @@ const useCustomerStore = defineStore('api-customer', () => {
async function deleteAttachment(id: string, filename: string) {
const res = await api.delete(
`/customer-branch/${id}/attachment/{${filename}}`,
`/customer-branch/${id}/attachment/${filename}`,
);
if (res.status >= 400) return false;