feat: add activeOnly parameter to institution queries
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s

This commit is contained in:
puriphatt 2025-04-24 10:22:14 +07:00
parent 4040da58f9
commit 63036b03fd
2 changed files with 2 additions and 0 deletions

View file

@ -43,6 +43,7 @@ const { getOptions, setFirstValue, getSelectedOption, filter } =
const ret = await getList({
query: query === '' ? undefined : query,
...props.params,
activeOnly: true,
});
if (ret) return ret.result;
},

View file

@ -31,6 +31,7 @@ export const useInstitution = defineStore('institution-store', () => {
payload?: { group?: string[] };
startDate?: string;
endDate?: string;
activeOnly?: boolean;
}) {
const { payload, ...params } = opts || {};