mirror of https://gitgud.io/fatchan/jschan.git
Sage only email without force anon reference #130
parent
a46a3a5c23
commit
f4ca3563d5
8 changed files with 32 additions and 7 deletions
@ -0,0 +1,12 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = async(db, redis) => { |
||||
console.log('add sageOnlyEmail option to boards'); |
||||
await db.collection('boards').updateMany({}, { |
||||
'$set': { |
||||
'settings.sageOnlyEmail': false, |
||||
} |
||||
}); |
||||
console.log('Cleared boards cache'); |
||||
await redis.deletePattern('board:*'); |
||||
}; |
Loading…
Reference in new issue