diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index 61da20fb..2ef12578 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -13,11 +13,12 @@ import { CitizenPayload, } from './types'; import { Employee } from '../employee/types'; -import { baseUrl, manageFile, manageMeta } from '../utils'; +import { baseUrl, manageAttachment, manageFile, manageMeta } from '../utils'; const useCustomerStore = defineStore('api-customer', () => { const data = ref>(); + const attachmentManager = manageAttachment(api, 'customer-branch'); const fileManager = manageFile< | 'citizen' | 'house-registration' @@ -490,11 +491,8 @@ const useCustomerStore = defineStore('api-customer', () => { fetchBranchEmployee, - listAttachment, - getAttachment, - putAttachment, deleteAttachment, - + ...attachmentManager, ...fileManager, ...metaManager, };