From 2c28b812f46bf461a3cb109a3e44fd10a1f22454 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 12 Jun 2018 10:03:53 -0300 Subject: [PATCH] Update v126.js (#11103) --- server/startup/migrations/v126.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }