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 } })