From 337868cf5fc552be2364eb39135903694c72d425 Mon Sep 17 00:00:00 2001 From: divlo Date: Mon, 3 Aug 2020 12:54:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20getUserInfo=20:=20quotes=20isVal?= =?UTF-8?q?idated:=20true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controllers/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/users.js b/api/controllers/users.js index d6c45ac..35f7a99 100644 --- a/api/controllers/users.js +++ b/api/controllers/users.js @@ -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'] },