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))