const candidate = await User.findOne({where: {email:req.body.email}} ) if (candidate) { candidate.resetToken = token await candidate.save() }