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