no message

This commit is contained in:
2018-03-04 17:42:52 -05:00
parent 59a7c442d5
commit 334da90b26

View File

@@ -132,7 +132,12 @@ module.exports = {
find: (e, find) => { find: (e, find) => {
const promise = new Promise((resolve, reject) => { const promise = new Promise((resolve, reject) => {
var query = ProfileModel.find(find); var query = ProfileModel
.find(find.find)
.skip(find.options.skip)
.limit(find.options.limit)
.sort(find.options.sort)
.select(find.select || '');
if (!find.select || (find.select.length && find.select.indexOf('messages'))) { if (!find.select || (find.select.length && find.select.indexOf('messages'))) {
query.populate({ query.populate({