lila/bin/mongodb/horde.js

17 lines
327 B
JavaScript

[db.config, db.config_anon].forEach(function (coll) {
coll.find().forEach(function (o) {
if (o.filter && o.filter.v && o.filter.v.length > 1) {
coll.update(
{
_id: o._id,
},
{
$push: {
'filter.v': NumberInt(8),
},
}
);
}
});
});