From fbdb64ba37af33d1f0e8b5e78e8d89c4be892158 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Wed, 25 Sep 2019 23:08:55 -0400 Subject: [PATCH] fix migration --- migrations/lowerCaseIds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });