From 57000153d51896326aec5643954879b6d2f2d535 Mon Sep 17 00:00:00 2001 From: Mike Fitzpatrick Date: Sun, 4 Mar 2018 22:11:06 -0500 Subject: [PATCH] no message --- models/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/profile.js b/models/profile.js index 42414bd..cddc5ee 100644 --- a/models/profile.js +++ b/models/profile.js @@ -173,7 +173,7 @@ module.exports = { .select('messages') .populate({ path: 'messages', - match: { $and: [{ isUser: true }, { image: { $exists: true } }, { text: { $exists: false } }] }, + match: { $and: [{ isUser: false }, { image: { $exists: true } }, { text: { $exists: false } }] }, select: '-_id -isUser -order -text -timestamp', sort: { order: 1 } })