From 499e36786b061062bf185dca1ed9210a22465c3c Mon Sep 17 00:00:00 2001 From: juancarmore Date: Tue, 25 Mar 2025 13:04:29 +0100 Subject: [PATCH] backend: Add TODO in LiveKitService for deprecated warning --- backend/src/services/livekit.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }