mirror of
https://github.com/linuxserver/heimdalljs.git
synced 2026-02-20 05:12:24 +08:00
change to pull request
This commit is contained in:
parent
72cacc6505
commit
c2eb07cf64
@ -13,7 +13,7 @@ router.get('/', async (req, res, next) => {
|
||||
if (req.user.level === User.ADMIN) {
|
||||
return res.json({
|
||||
status: 'ok',
|
||||
result: users
|
||||
result: res.json(users.map(user => user.toJSON()))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user