frontend: Rename roomName to roomId in recording start process for consistency

This commit is contained in:
Carlos Santos 2025-03-19 19:32:20 +01:00
parent 2d4f005d3b
commit cdf652acb8
2 changed files with 4 additions and 4 deletions

View File

@ -129,8 +129,8 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
async onRecordingStartRequested(event: RecordingStartRequestedEvent) { async onRecordingStartRequested(event: RecordingStartRequestedEvent) {
try { try {
const { roomName } = event; const { roomName: roomId } = event;
await this.httpService.startRecording(roomName); await this.httpService.startRecording(roomId);
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }

View File

@ -101,8 +101,8 @@ export class HttpService {
return this.getRequest(path); return this.getRequest(path);
} }
startRecording(roomName: string): Promise<RecordingInfo> { startRecording(roomId: string): Promise<RecordingInfo> {
return this.postRequest(`${this.pathPrefix}/${this.apiVersion}/recordings`, { roomName }); return this.postRequest(`${this.pathPrefix}/${this.apiVersion}/recordings`, { roomId });
} }
stopRecording(recordingId: string): Promise<RecordingInfo> { stopRecording(recordingId: string): Promise<RecordingInfo> {