backend: Update recording path extraction to include S3 prefix and fix typo

This commit is contained in:
Carlos Santos 2025-04-21 11:49:25 +02:00
parent 524460e06a
commit 0e9d050bcb

View File

@ -349,7 +349,7 @@ export class RecordingService {
this.logger.verbose( this.logger.verbose(
`Active egress found for room ${roomId}: ${egress.map((e) => e.egressId).join(', ')}` `Active egress found for room ${roomId}: ${egress.map((e) => e.egressId).join(', ')}`
); );
this.logger.error(`Cannot release recorgin lock for room '${roomId}'.`); this.logger.error(`Cannot release recording lock for room '${roomId}'.`);
return; return;
} }
@ -394,7 +394,7 @@ export class RecordingService {
throw errorRecordingNotStopped(recordingId); throw errorRecordingNotStopped(recordingId);
} }
const recordingPath = RecordingHelper.extractFilename(recordingInfo); const recordingPath = `${INTERNAL_CONFIG.S3_RECORDINGS_PREFIX}/${RecordingHelper.extractFilename(recordingInfo)}`;
if (!recordingPath) { if (!recordingPath) {
throw internalError(`Error extracting path from recording ${recordingId}`); throw internalError(`Error extracting path from recording ${recordingId}`);