From 347f6f297dbe015201555ba8630ee2375b5f4407 Mon Sep 17 00:00:00 2001 From: Brian Bicknell Date: Mon, 30 Mar 2026 23:22:50 -0400 Subject: [PATCH] If the ingest comes in with zero supported language, do not make any changes, specifically removals. --- JSMR.Infrastructure/Ingestion/VoiceWorkUpdater.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/JSMR.Infrastructure/Ingestion/VoiceWorkUpdater.cs b/JSMR.Infrastructure/Ingestion/VoiceWorkUpdater.cs index 8f67298..663ac03 100644 --- a/JSMR.Infrastructure/Ingestion/VoiceWorkUpdater.cs +++ b/JSMR.Infrastructure/Ingestion/VoiceWorkUpdater.cs @@ -426,6 +426,9 @@ public class VoiceWorkUpdater(AppDbContext dbContext, ITimeProvider timeProvider VoiceWork voiceWork = upsertContext.VoiceWorks[ingest.ProductId]; Dictionary existingLanguageLinks = voiceWork.SupportedLanguages.ToDictionary(x => x.Language); + if (ingest.SupportedLanguages.Count == 0) + return; + foreach (SupportedLanguage supportedLanguage in ingest.SupportedLanguages) { if (!existingLanguageLinks.TryGetValue(supportedLanguage.Code, out VoiceWorkSupportedLanguage? voiceWorkSupportedLanguage))