mirror of https://gitgud.io/fatchan/jschan.git
Draft: Add modlog on unban, and split concept of private/public modlog entries See merge request fatchan/jschan!345
commit
9c83a3603b
11 changed files with 83 additions and 12 deletions
@ -0,0 +1,12 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = async(db) => { |
||||
|
||||
console.log('Updating modlogs to add public flag'); |
||||
await db.collection('modlog').updateMany({}, { |
||||
'$set': { |
||||
'public': true, |
||||
}, |
||||
}); |
||||
|
||||
}; |
@ -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