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

24 lines
518 B

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