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) {
try {
const { roomName } = event;
await this.httpService.startRecording(roomName);
const { roomName: roomId } = event;
await this.httpService.startRecording(roomId);
} catch (error) {
console.error(error);
}

View File

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