Skip to content

Commit a9908ec

Browse files
committed
x
1 parent 4211968 commit a9908ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ee/packages/federation-matrix/src/api/middlewares/canAccessResource.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import { errCodes } from '@rocket.chat/federation-sdk';
22
import type { EventAuthorizationService } from '@rocket.chat/federation-sdk';
33
import { createMiddleware } from 'hono/factory';
44

5-
function extractEntityId(params: RoutesParams): { type: 'event' | 'media' | 'room'; id: string } | undefined {
5+
function extractEntityId(params: {
6+
eventId?: string;
7+
mediaId?: string;
8+
roomId?: string;
9+
}): { type: 'event' | 'media' | 'room'; id: string } | undefined {
610
if (params.eventId) {
711
return { type: 'event', id: params.eventId };
812
}

0 commit comments

Comments
 (0)