simplify <List> API and move logic outside of it

This commit is contained in:
Henry Jameson 2026-06-08 05:27:47 +03:00
commit a0d5decc49
15 changed files with 209 additions and 510 deletions

View file

@ -1673,7 +1673,10 @@ const adminListUsers = ({ opts, credentials }) => {
url: url,
credentials,
method: 'GET',
}).then((data) => data.users.map(parseUser))
}).then((data) => ({
...data,
users: data.users.map(parseUser),
}))
}
const adminAddUserToAdminGroup = ({ user, credentials }) => {