mirror of
https://github.com/luxfi/pics.git
synced 2026-07-27 05:11:31 +00:00
add migration for "global" prop on bans
This commit is contained in:
@@ -8,4 +8,5 @@ module.exports = async(db) => {
|
||||
'public': true,
|
||||
},
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = async(db) => {
|
||||
|
||||
console.log('Updating all bans with board: null to be global true');
|
||||
await db.collection('bans').updateMany({
|
||||
board: null,
|
||||
}, {
|
||||
'$set': {
|
||||
'global': true,
|
||||
},
|
||||
});
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user