mirror of https://gitgud.io/fatchan/jschan.git
parent
afdf898a88
commit
02c6612004
2 changed files with 15 additions and 0 deletions
@ -0,0 +1,14 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = async(db) => { |
||||
|
||||
console.log('Updating all bans with board: null to be global true'); |
||||
await db.collection('bans').updateMany({ |
||||
board: null, |
||||
}, { |
||||
'$set': { |
||||
'global': true, |
||||
}, |
||||
}); |
||||
|
||||
}; |
Loading…
Reference in new issue