The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Rocket.Chat/server/startup/migrations/v172.js

16 lines
477 B

import {
Migrations,
} from '../../../app/migrations';
import {
Settings,
} from '../../../app/models';
Migrations.add({
version: 172,
up() {
const settings = Settings.find({ _id: /Message_HideType_.*/i }).fetch();
Settings.update({ _id: 'Hide_System_Messages' }, { $set: { value: settings.filter((setting) => setting.value).map((setting) => setting._id.replace('Message_HideType_')) } });
Settings.remove({ _id: /Message_HideType_.*/i }, { multi: true });
},
});