Skip to content

Commit

Permalink
chore: earn migration part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Dec 21, 2023
1 parent 035ec24 commit e145e76
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/api/src/migrations/20231220190840-quiz-new-collection-2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
/* eslint @typescript-eslint/ban-ts-comment: "off" */
// @ts-ignore-next-line no-implicit-any error
async up(db) {
console.log("Begin earn removal")
const res = await db
.collection("accounts")
.updateMany({}, { $unset: { earn: 1 } }, { multi: true })
console.log({ res }, `end earn removal`)
},
}

0 comments on commit e145e76

Please sign in to comment.