The communications platform that puts data protection first.
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.
 
 
 
 
 
Rocket.Chat/server/startup/migrations/v171.js

28 lines
468 B

import {
Migrations,
} from '../../../app/migrations';
import {
Users,
Settings,
} from '../../../app/models';
Migrations.add({
version: 171,
up() {
Settings.remove({ _id: 'Accounts_Default_User_Preferences_roomCounterSidebar' });
return Users.update(
{
'settings.preferences.roomCounterSidebar': {
$exists: true,
},
}, {
$unset: {
'settings.preferences.roomCounterSidebar': 1,
},
}, {
multi: true,
},
);
},
});