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

25 lines
365 B

RocketChat.Migrations.add({
version: 80,
up() {
const query = {
type: 'webhook-outgoing',
$or: [{
channel: []
}, {
channel: ''
}, {
channel: {
$exists: false
}
}]
};
const update = {
$set: {
channel: ['all_public_channels']
}
};
RocketChat.models.Integrations.update(query, update, {multi: true});
}
});