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

20 lines
473 B

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