mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
Fix missing async keyword on query
This commit is contained in:
@@ -9,7 +9,7 @@ const router = new Router({ prefix: '/users' })
|
||||
router.get('/',
|
||||
ensureUser,
|
||||
async (ctx) => {
|
||||
const users = User.find({}, '-password -salt')
|
||||
const users = await User.find({}, '-password -salt')
|
||||
ctx.body = users
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user