🐛 getUserInfo : quotes isValidated: true

This commit is contained in:
divlo 2020-08-03 12:54:19 +02:00
parent c687a153c3
commit 337868cf5f

View File

@ -265,7 +265,7 @@ exports.getUserInfo = async (req, res, next) => {
}
})
const quotesArray = await Quotes.findAll({
where: { userId: user.id },
where: { userId: user.id, isValidated: 1 },
attributes: {
exclude: ['updatedAt', 'createdAt', 'isValidated', 'userId', 'id']
},