refactor: remove in-country-notice group from meta manager and file

This commit is contained in:
Methapon Metanipat 2024-11-11 15:02:47 +07:00
parent ba717813a1
commit 5237d2cd5b

View file

@ -21,14 +21,8 @@ const useEmployeeStore = defineStore('api-employee', () => {
const data = ref<Pagination<Employee[]>>();
const globalOption = ref();
const ownerOption = ref<CustomerBranch[]>();
const fileManager = manageFile<'passport' | 'visa' | 'in-country-notice'>(
api,
'employee',
);
const metaManager = manageMeta<'passport' | 'visa' | 'in-country-notice'>(
api,
'employee',
);
const fileManager = manageFile<'passport' | 'visa'>(api, 'employee');
const metaManager = manageMeta<'passport' | 'visa'>(api, 'employee');
async function fetchById(id: string) {
const res = await api.get<Employee>(`/employee/${id}`);