Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto committed Jun 6, 2022
1 parent ee2b16d commit 145262e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/meteor/app/slashcommands-bridge/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Meteor } from 'meteor/meteor';
import { Match } from 'meteor/check';
import { IMessage } from '@rocket.chat/core-typings';

import { slashCommands } from '../../utils/lib/slashCommand';
import { federationRoomServiceSender } from '../../federation-v2/server';
import { FederationRoomSenderConverter } from '../../federation-v2/server/infrastructure/rocket-chat/converters/RoomSender';

function Bridge(_command: 'bridge', stringParams: string, item: IMessage): void {
function Bridge(_command: 'bridge', stringParams: string | undefined, item: Record<string, any>): void {
if (_command !== 'bridge' || !Match.test(stringParams, String)) {
return;
}
Expand Down

0 comments on commit 145262e

Please sign in to comment.