Skip to content

Commit

Permalink
Fix migration 125 checking for settings field (#11364)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Jul 6, 2018
1 parent 3b8b329 commit 897156a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/startup/migrations/v125.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
RocketChat.Migrations.add({
version: 125,
up() {
RocketChat.models.Users.update({}, {
RocketChat.models.Users.update({
'settings.preferences.groupByType': { $exists: true }
}, {
$rename: {
'settings.preferences.groupByType': 'settings.preferences.sidebarGroupByType'
}
Expand Down

0 comments on commit 897156a

Please sign in to comment.