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/apps/meteor/server/startup/migrations/v298.ts

20 lines
400 B

import { Integrations } from '@rocket.chat/models';
import { addMigration } from '../../lib/migrations';
addMigration({
version: 298,
name: 'Set overrideDestinationChannelEnabled for all incoming webhook integrations',
async up() {
await Integrations.updateMany(
{
type: 'webhook-incoming',
},
{
$set: {
overrideDestinationChannelEnabled: true,
},
},
);
},
});