diff --git a/server/startup/migrations/v126.js b/server/startup/migrations/v126.js index e4549c2ee9b3..839985586de2 100644 --- a/server/startup/migrations/v126.js +++ b/server/startup/migrations/v126.js @@ -12,7 +12,7 @@ RocketChat.Migrations.add({ if (setting) { setting._id = 'Accounts_Default_User_Preferences_idleTimeLimit'; - RocketChat.models.Rooms.insert(setting); + RocketChat.models.Settings.insert(setting); RocketChat.models.Settings.remove(query); } }