[api] revert user ssp

This commit is contained in:
Tim Gröger 2021-11-25 12:32:50 +01:00
parent 6fd3f045f8
commit 053fdae384
1 changed files with 2 additions and 4 deletions

View File

@ -37,11 +37,9 @@ export const useUserStore = defineStore({
} }
}, },
async getUsers(force = false, filter?: {userids: undefined|string}) { async getUsers(force = false) {
if (force || this._dirty_users) { if (force || this._dirty_users) {
const { data } = await api.get<FG.User[]>('/users', { const { data } = await api.get<FG.User[]>('/users');
params: filter
});
data.forEach((user) => { data.forEach((user) => {
if (user.birthday) user.birthday = new Date(user.birthday); if (user.birthday) user.birthday = new Date(user.birthday);
}); });