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.
24 lines
683 B
24 lines
683 B
2 years ago
|
'use strict';
|
||
|
|
||
|
module.exports = async(db, redis) => {
|
||
|
console.log('Adding tegaki sizes to globalsettings, and toggle option to board settings');
|
||
|
await db.collection('globalsettings').updateOne({ _id: 'globalsettings' }, {
|
||
|
'$set': {
|
||
|
'frontendScriptDefault.tegakiWidth': 500,
|
||
|
'frontendScriptDefault.tegakiHeight': 500,
|
||
|
'boardDefaults.enableTegaki': true,
|
||
|
},
|
||
|
});
|
||
|
await db.collection('boards').updateMany({
|
||
|
'webring': false,
|
||
|
}, {
|
||
|
'$set':{
|
||
|
'settings.enableTegaki': true,
|
||
|
},
|
||
|
});
|
||
|
console.log('Clearing globalsettings cache');
|
||
|
await redis.deletePattern('globalsettings');
|
||
|
console.log('Clearing user and board cache');
|
||
|
await redis.deletePattern('board:*');
|
||
|
};
|