mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 12:48:52 +00:00
fix(communityGuidelines): modify script query to use collection indexes
first for better perf
This commit is contained in:
parent
7175251649
commit
85aef2dd27
1 changed files with 2 additions and 5 deletions
|
|
@ -13,11 +13,8 @@ var _ = require('lodash');
|
|||
|
||||
var dbUsers = mongo.db('localhost:27017/habitrpg?auto_reconnect').collection('users');
|
||||
|
||||
var query = { $and: [
|
||||
{ 'migration': {$ne: migrationName} },
|
||||
{ 'contributor.admin':true },
|
||||
{ 'contributor.level':{$gte:7} }
|
||||
]};
|
||||
var query =
|
||||
{ 'contributor.level':{$gte:7}, 'contributor.admin':true, 'migration': {$ne: migrationName} };
|
||||
|
||||
var fields = {'migration':1,
|
||||
'contributor.admin':1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue