diff options
| author | ryderr <r@okfoc.us> | 2014-09-30 11:47:16 -0400 |
|---|---|---|
| committer | ryderr <r@okfoc.us> | 2014-09-30 11:47:16 -0400 |
| commit | 0e980458a5deffa9351b79ad3ac0f09cc9b9cbe2 (patch) | |
| tree | 95789533404fee84f2b209554b059145b165d9ba /server/lib/views/staff.js | |
| parent | 166834f03505ec7e766cb5d6d7151310fbf54d49 (diff) | |
| parent | 746dc328ab759d95935177834525b4a1dfccffff (diff) | |
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'server/lib/views/staff.js')
| -rw-r--r-- | server/lib/views/staff.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/views/staff.js b/server/lib/views/staff.js index ffacee2..41877c8 100644 --- a/server/lib/views/staff.js +++ b/server/lib/views/staff.js @@ -143,14 +143,14 @@ var staff = module.exports = { }, ensureObjectsUsers: function(objects, next){ - if (! objects) { return next () } + if (! objects) { return next () } var dedupe = {}, user_ids objects.forEach(function(obj){ dedupe[ obj.user_id ] = dedupe[ obj.user_id ] || [] dedupe[ obj.user_id ].push(obj) }) user_ids = _.keys(dedupe) - User.find({ _id: user_ids }) + User.find({ _id: { $in: user_ids } }) .select(staff.fields.user) .exec(function (err, users) { if (! users) { return next () } @@ -527,4 +527,4 @@ var staff = module.exports = { }, } -}
\ No newline at end of file +} |
