From 88ab87c9ee6e32ad0b3a4b0c4c6437cd967dfe2e Mon Sep 17 00:00:00 2001 From: Fransolet Thomas Date: Fri, 10 Feb 2023 17:06:23 +0100 Subject: [PATCH] Add audio in export configuration --- ManagerService/Controllers/ConfigurationController.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ManagerService/Controllers/ConfigurationController.cs b/ManagerService/Controllers/ConfigurationController.cs index f7e9453..3d77150 100644 --- a/ManagerService/Controllers/ConfigurationController.cs +++ b/ManagerService/Controllers/ConfigurationController.cs @@ -266,7 +266,7 @@ namespace ManagerService.Controllers [ProducesResponseType(typeof(string), 404)] [ProducesResponseType(typeof(string), 500)] [HttpGet("{id}/export")] - public FileContentResult Export(string id) + public FileContentResult Export(string id, string language) { try { @@ -367,6 +367,14 @@ namespace ManagerService.Controllers addResourceToList(resourceDTOs, image.resourceId); } } + + foreach (var audio in articleDTO.audioIds.Where(a => a.language == language)) + { + if (audio.value != null) + { + addResourceToList(resourceDTOs, audio.value); + } + } break; case SectionType.Menu: case SectionType.Web: