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/v169.js

18 lines
390 B

import { Migrations } from '../../../app/migrations/server';
import { Settings } from '../../../app/models/server';
Migrations.add({
version: 169,
up() {
const _id = 'Livechat_webhookUrl';
const setting = Settings.findOne({ _id });
if (setting && setting.value === false) {
Settings.update({ _id }, {
$set: {
value: '',
packageValue: '',
},
});
}
},
});