Skip to content

Commit

Permalink
removing user update in the lastest migration
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocostadev committed Feb 6, 2023
1 parent ce62f06 commit c545e58
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions apps/meteor/server/startup/migrations/v283.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
import { Settings } from '@rocket.chat/models';

import { addMigration } from '../../lib/migrations';
import { Users } from '../../../app/models/server';

addMigration({
version: 283,
up() {
Users.update(
{ 'settings.preferences.messageViewMode': { $exists: 1 } },
{
$unset: {
'settings.preferences.messageViewMode': 1,
},
},
{ multi: true },
);

return Settings.removeById('Accounts_Default_User_Preferences_messageViewMode');
async up() {
await Settings.removeById('Accounts_Default_User_Preferences_messageViewMode');
},
});

0 comments on commit c545e58

Please sign in to comment.