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

13 lines
399 B

import { Migrations } from '../../../app/migrations';
import { Integrations } from '../../../app/models';
Migrations.add({
version: 92,
up() {
const outgoingIntegrations = Integrations.find({ type: 'webhook-outgoing', event: 'sendMessage' }, { fields: { name: 1 } }).fetch();
outgoingIntegrations.forEach((i) => {
Integrations.update(i._id, { $set: { runOnEdits: true } });
});
},
});