Skip to content

Commit

Permalink
chore: re-init-withdraw-fee migration (#3614)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts authored Nov 28, 2023
1 parent 4a4d885 commit 3a1dacd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core/api/src/migrations/20231128111840-re-init-withdraw-fee.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
/* eslint @typescript-eslint/ban-ts-comment: "off" */
// @ts-ignore-next-line no-implicit-any error
async up(db) {
console.log("Begin withdrawFee reset")
const res = await db
.collection("accounts")
.updateMany({}, { $unset: { withdrawFee: 1 } }, { multi: true })
console.log({ res }, `resetting withdrawFee fields`)
},

async down() {
console.log(`rollback withdrawFee reset not needed`)
},
}

0 comments on commit 3a1dacd

Please sign in to comment.