From df0d0573221b9c83ac101c8c9d08e670dc261340 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Wed, 25 Sep 2019 21:59:39 -0500 Subject: [PATCH] also update ids in streams --- migrations/lowerCaseIds.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/migrations/lowerCaseIds.js b/migrations/lowerCaseIds.js index 38f3003..a2b72ea 100644 --- a/migrations/lowerCaseIds.js +++ b/migrations/lowerCaseIds.js @@ -1,4 +1,12 @@ db.objects.find({type: "Group"}).forEach(function(d){ d.id = d.id.toLowerCase(); db.objects.save(d); -}); \ No newline at end of file +}); +db.streams.find({"_meta._target": {$exists: true}}).forEach(function(d){ + d._meta._target = d._meta._target.toLowerCase(); + db.objects.save(d); +}); +db.streams.find({actor: /gup\.pe/}).forEach(function(d){ + d.actor = d.actor.toLowerCase(); + db.streams.save(d); +});