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

11 lines
415 B

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