[FIX] migration 126

pull/10095/head^2
Guilherme Gazzo 8 years ago committed by GitHub
parent 7689f2e9ba
commit e3f7543115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      server/startup/migrations/v126.js

@ -11,8 +11,8 @@ RocketChat.Migrations.add({
const setting = RocketChat.models.Settings.findOne(query);
if (setting) {
setting._id = 'Accounts_Default_User_Preferences_idleTimeLimit';
RocketChat.models.Settings.insert(setting);
delete setting._id;
RocketChat.models.Settings.upsert({_id: 'Accounts_Default_User_Preferences_idleTimeLimit'}, setting);
RocketChat.models.Settings.remove(query);
}
}

Loading…
Cancel
Save