mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
fix groups migration
This commit is contained in:
parent
c292d7b438
commit
d64ce2fcdf
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ dbGroups.findEach({}, {_id: 1, members: 1}, {batchSize: 500}, function(err, grou
|
||||||
dbUsers.count({_id: member}, function(err, count){
|
dbUsers.count({_id: member}, function(err, count){
|
||||||
if(err) throw err;
|
if(err) throw err;
|
||||||
|
|
||||||
if(count < 1 && (group._id !== 'habitrpg')) {
|
if(count < 1) {
|
||||||
countUsers++;
|
countUsers++;
|
||||||
console.log('User: ', countUsers);
|
console.log('User: ', countUsers);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue