no message

This commit is contained in:
2018-03-04 22:09:36 -05:00
parent 0f3b452c3b
commit ea2576f182

View File

@@ -174,7 +174,7 @@ module.exports = {
.populate({
path: 'messages',
match: { $and: [{ isUser: true }, { image: { $exists: true } }, { text: { $exists: false } }] },
select: 'image -_id -isUser -order -text -timestamp',
select: '-_id -isUser -order -text -timestamp',
sort: { order: 1 }
})
.exec((err, result) => {