Fix missing async keyword on query

This commit is contained in:
Adrian Obelmejias
2016-02-15 17:04:29 -05:00
parent 6910b04e91
commit 85f6518262
+1 -1
View File
@@ -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
}
)