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/app/integrations/server/startup.ts

8 lines
299 B

import { Meteor } from 'meteor/meteor';
import { Integrations } from '@rocket.chat/models';
import { triggerHandler } from './lib/triggerHandler';
Meteor.startup(async function () {
await Integrations.find({ type: 'webhook-outgoing' }).forEach((data) => triggerHandler.addIntegration(data));
});