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

22 lines
475 B

import { Migrations } from '../../../app/migrations';
import { Settings } from '../../../app/models';
Migrations.add({
version: 126,
up() {
if (!Settings) {
return;
}
const query = {
_id: 'Accounts_Default_User_Preferences_idleTimeoutLimit',
};
const setting = Settings.findOne(query);
if (setting) {
delete setting._id;
Settings.upsert({ _id: 'Accounts_Default_User_Preferences_idleTimeLimit' }, setting);
Settings.remove(query);
}
},
});