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.
16 lines
510 B
16 lines
510 B
'use strict';
|
|
|
|
const timeUtils = require(__dirname+'/../lib/converter/timeutils.js');
|
|
|
|
module.exports = async(db, redis) => {
|
|
console.log('add inactive account and board auto handling');
|
|
await db.collection('globalsettings').updateOne({ _id: 'globalsettings' }, {
|
|
'$set': {
|
|
inactiveAccountTime: timeUtils.MONTH * 3,
|
|
inactiveAccountAction: 0, //no actions by default
|
|
abandonedBoardAction: 0,
|
|
},
|
|
});
|
|
console.log('Clearing globalsettings cache');
|
|
await redis.deletePattern('globalsettings');
|
|
};
|
|
|