diff --git a/src/pages/Admin.vue b/src/pages/Admin.vue index 575fda9..cb11ab4 100644 --- a/src/pages/Admin.vue +++ b/src/pages/Admin.vue @@ -109,6 +109,8 @@ export default defineComponent({ const userStore = useUserStore(); onBeforeMount( () => { + void userStore.getUsers(); + void store.getLimits(); void onRequest({pagination: pagination.value, filter: undefined}) }); @@ -185,8 +187,6 @@ export default defineComponent({ pagination.value.sortBy = sortBy; pagination.value.descending = descending; if (result.count) pagination.value.rowsNumber = result.count; - void userStore.getUsers(true, {userids: result.userids}); - void store.getLimits({userids: result.userids}); } catch (error) { console.warn(error) } diff --git a/src/store.ts b/src/store.ts index 06363a6..3180165 100644 --- a/src/store.ts +++ b/src/store.ts @@ -82,15 +82,7 @@ export const useBalanceStore = defineStore({ params: filter }); this.balances = data.balances; - let userids = "" - data.balances.forEach(response => { - userids += `,${response.userid}` - }) - await api.get('/users', { - params: {userids: userids}, - } - ) - return {balances: this.balances, count: data.count, userids}; + return {balances: this.balances, count: data.count}; }, async changeBalance(amount: number, user: FG.User, sender: FG.User | undefined = undefined) {