no message
This commit is contained in:
@@ -172,9 +172,9 @@ module.exports = {
|
||||
.find({ _id: profileId })
|
||||
.select('messages')
|
||||
.populate({
|
||||
match: { image: { $ne: null } },
|
||||
path: 'messages',
|
||||
select: 'image'
|
||||
match: { image: { $exists: true }, text: { $exists: false } },
|
||||
select: 'image -_id'
|
||||
})
|
||||
.exec((err, result) => {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user