also update ids in streams

This commit is contained in:
Will Murphy 2019-09-25 21:59:39 -05:00
parent bf58e27748
commit df0d057322

View file

@ -1,4 +1,12 @@
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){
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);
});