RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/integrations/server/startup.ts

Summary

Maintainability
A
0 mins
Test Coverage
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));
});