Skip to content

Commit

Permalink
chore: migrate Example Suggestions to include viewableSectionIds
Browse files Browse the repository at this point in the history
  • Loading branch information
ijemmao committed Feb 12, 2025
1 parent 7ec5e05 commit a1a76fc
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
async up(db) {
const collections = ['examplesuggestions'];
await Promise.all(
collections.map(async (collection) => {
db.collection(collection).updateMany(
{},
{
$set: { viewableSectionIds: [] },
}
);
})
);
},

async down() {},
};

0 comments on commit a1a76fc

Please sign in to comment.