From 3a1c0aba635f5d81c2275ed8d5f2cb0c7537837e Mon Sep 17 00:00:00 2001 From: Net Date: Wed, 28 Aug 2024 17:34:19 +0700 Subject: [PATCH] refactor: edit url deleteAttachment --- src/stores/customer/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index 70944cd2..939460ed 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -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;