mirror of
https://github.com/luxfi/pics.git
synced 2026-10-30 15:22:15 +00:00
26 lines
625 B
JavaScript
26 lines
625 B
JavaScript
'use strict';
|
|
|
|
module.exports = async(db, redis) => {
|
|
|
|
console.log('Updating globalsettings to add web3 settings');
|
|
await db.collection('globalsettings').updateOne({ _id: 'globalsettings' }, {
|
|
'$set': {
|
|
'enableWeb3': false,
|
|
'ethereumLinksURL': 'https://etherscan.io/address/%s',
|
|
},
|
|
});
|
|
|
|
console.log('Updating boards to add web3 settings');
|
|
await db.collection('boards').updateMany({}, {
|
|
'$set': {
|
|
'enableWeb3': false,
|
|
},
|
|
});
|
|
|
|
console.log('Clearing globalsettings cache');
|
|
await redis.deletePattern('globalsettings');
|
|
console.log('Clearing boards cache');
|
|
await redis.deletePattern('board:*');
|
|
|
|
};
|