no message
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user