no message
This commit is contained in:
1 parent
51a83572b5
commit
792da1367d
1 file changed
+1
-1
+1
-1
@@ -134,7 +134,7 @@ module.exports = {
|
|||||||
const promise = new Promise((resolve, reject) => {
|
const promise = new Promise((resolve, reject) => {
|
||||||
var query = ProfileModel.find(find);
|
var query = ProfileModel.find(find);
|
||||||
|
|
||||||
if (!find.select.length || (find.select.length && find.length.indexOf('messages'))) {
|
if (!find.select || (find.select.length && find.length.indexOf('messages'))) {
|
||||||
query.populate({
|
query.populate({
|
||||||
path: 'messages',
|
path: 'messages',
|
||||||
select: 'order text image isUser',
|
select: 'order text image isUser',
|
||||||
|
|||||||
Reference in new issue
Block a user