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({ type: 'webhook-outgoing' }).forEach((data) => triggerHandler.addIntegration(data as IOutgoingIntegration), ); });