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
346 B
15 lines
346 B
4 years ago
|
'use strict';
|
||
|
|
||
|
module.exports = async(db, redis) => {
|
||
|
console.log('Renamed "yotsuba b" to "yotsuba-b" in any board settings');
|
||
|
await db.collection('boards').updateMany({
|
||
|
'settings.theme': 'yotsuba b',
|
||
|
}, {
|
||
|
'$set': {
|
||
|
'settings.theme': 'yotsuba-b',
|
||
|
}
|
||
|
});
|
||
|
console.log('Cleared boards cache');
|
||
|
await redis.deletePattern('board:*');
|
||
|
};
|