RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/meteor-accounts-saml/server/methods/addSamlService.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { ServerMethods } from '@rocket.chat/ddp-client';
import { Meteor } from 'meteor/meteor';

import { addSamlService } from '../lib/settings';

declare module '@rocket.chat/ddp-client' {
    // eslint-disable-next-line @typescript-eslint/naming-convention
    interface ServerMethods {
        addSamlService(name: string): void;
    }
}

Meteor.methods<ServerMethods>({
    addSamlService(name) {
        addSamlService(name);
    },
});