diff --git a/backend/src/services/livekit.service.ts b/backend/src/services/livekit.service.ts index 80e8f95..7326f5a 100644 --- a/backend/src/services/livekit.service.ts +++ b/backend/src/services/livekit.service.ts @@ -177,11 +177,11 @@ export class LiveKitService { * @returns {Promise} A promise that resolves to an array of EgressInfo objects. * @throws Will throw an error if there is an issue retrieving the egress information. */ - async getEgress(roomName?:string, egressId?: string): Promise { + async getEgress(roomName?: string, egressId?: string): Promise { try { const options: ListEgressOptions = { roomName, - egressId, + egressId }; return await this.egressClient.listEgress(options); } catch (error: any) { @@ -220,6 +220,7 @@ export class LiveKitService { } isEgressParticipant(participant: ParticipantInfo): boolean { + // TODO: Remove deprecated warning by using ParticipantInfo_Kind: participant.kind === ParticipantInfo_Kind.EGRESS; return participant.identity.startsWith('EG_') && participant.permission?.recorder === true; }