mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
354 B
15 lines
354 B
3 years ago
|
'use strict';
|
||
|
|
||
|
module.exports = async(db, redis) => {
|
||
|
console.log('Adding OP delete protection options to board settings');
|
||
|
await db.collection('boards').updateMany({}, {
|
||
|
'$set': {
|
||
|
'settings.deleteProtectionAge': 0,
|
||
|
'settings.deleteProtectionCount': 0,
|
||
|
}
|
||
|
});
|
||
|
console.log('Clearing boards cache');
|
||
|
await redis.deletePattern('board:*');
|
||
|
|
||
|
};
|