This commit is contained in:
lesion
2019-06-08 15:16:56 +02:00
parent 1dc47cb939
commit ccaf53aa24
14 changed files with 13 additions and 25 deletions

View File

@@ -19,7 +19,7 @@ const Auth = {
.status(403)
.send({ message: 'Failed to authenticate token ' })
}
req.user = await User.findOne({
where: { id: { [Op.eq]: req.user.id }, is_active: true }
})