cleaning up nested objects

This commit is contained in:
David Erwin
2016-11-10 15:24:34 -05:00
parent f7249c4016
commit 95f3b86f3b
+5 -3
View File
@@ -107,9 +107,11 @@ CommentSchema.statics.findByStatusByActionType = function(status, action_type) {
return Comment.find({
'status': status,
'id': {'$in': actions.map(a => {
return a.item_id;}
)}
'id': {
'$in': actions.map(a => {
return a.item_id;
})
}
});
});