Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 9846cb6

Browse files
feat(#5): return user status
1 parent 00c04fb commit 9846cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/chats/get-chats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports.getChats = function (req, res, next) {
3030
query["$or"] = subQuery;
3131

3232
var populateFields = new Array();
33-
populateFields.push({path: "userItem", select: "_id google.id facebook.id facebook.firstName", options: {lean: true}}, {path: "userApplicant", select: "_id facebook.id google.id facebook.firstName", options: {lean: true}});
33+
populateFields.push({path: "userItem", select: "_id google.id facebook.id facebook.firstName status", options: {lean: true}}, {path: "userApplicant", select: "_id facebook.id google.id facebook.firstName status", options: {lean: true}});
3434

3535
Chat.find(query).lean().sort({createdAt: -1}).limit(limit).skip(page).populate(populateFields).exec(function (err, chats) {
3636
if (err) {

0 commit comments

Comments
 (0)