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/v190.js

19 lines
495 B

import { Migrations } from '../../../app/migrations';
import { Settings, Subscriptions } from '../../../app/models/server/raw';
Migrations.add({
version: 190,
up() {
// Remove unused settings
Promise.await(Settings.col.deleteOne({ _id: 'Accounts_Default_User_Preferences_desktopNotificationDuration' }));
Promise.await(Subscriptions.col.updateMany({
desktopNotificationDuration: {
$exists: true,
},
}, {
$unset: {
desktopNotificationDuration: 1,
},
}));
},
});