The code:
async function getSingleUser(req, res) { const users = await models.User.findOne({ where: { id: req.params.id } }); res.json(users)