no message
This commit is contained in:
@@ -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 || (find.select.length && find.select.length.indexOf('messages'))) {
|
if (!find.select || (find.select.length && find.select.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