Skip to content

Commit

Permalink
fix: removes crowdsourcing field on wordsuggesitons anad examplesugge…
Browse files Browse the repository at this point in the history
…stions collections (#824)
  • Loading branch information
ijemmao authored Dec 6, 2024
1 parent c88d0d4 commit 1639761
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions migrations/20241206235108-remove-crowdsourcing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
async up(db) {
const collections = ['wordsuggestions', 'examplesuggestions'];
await Promise.all(
collections.map(async (collection) => {
db.collection(collection).updateMany(
{},
{
$unset: { crowdsourcing: null },
}
);
})
);
},

async down() {},
};

0 comments on commit 1639761

Please sign in to comment.