From 85e65d76b3f36ab72afb62ece20f90444fa8c6ba Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Thu, 10 Apr 2025 12:27:09 +0200 Subject: [PATCH] backend: Exclude secrets.json from metadata retrieval in recording service --- backend/src/services/recording.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/recording.service.ts b/backend/src/services/recording.service.ts index 7cf3788..f65a76c 100644 --- a/backend/src/services/recording.service.ts +++ b/backend/src/services/recording.service.ts @@ -267,7 +267,7 @@ export class RecordingService { const promises: Promise[] = []; // Retrieve the metadata for each recording Contents.forEach((item) => { - if (item?.Key && item.Key.endsWith('.json')) { + if (item?.Key && item.Key.endsWith('.json') && !item.Key.endsWith('secrets.json')) { promises.push(this.s3Service.getObjectAsJson(item.Key) as Promise); } });