mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 11:26:40 +08:00
cleaning up nested objects
This commit is contained in:
+5
-3
@@ -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;
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user