diff --git a/migrations/lowerCaseIds.js b/migrations/lowerCaseIds.js index a2b72ea..51a0c2e 100644 --- a/migrations/lowerCaseIds.js +++ b/migrations/lowerCaseIds.js @@ -2,7 +2,7 @@ db.objects.find({type: "Group"}).forEach(function(d){ d.id = d.id.toLowerCase(); db.objects.save(d); }); -db.streams.find({"_meta._target": {$exists: true}}).forEach(function(d){ +db.streams.find({"_meta._target": {$ne: null}}).forEach(function(d){ d._meta._target = d._meta._target.toLowerCase(); db.objects.save(d); });