Added logic to remove supported languages that are no longer supported, rather than just being purely additive. Added ApiClient logging.
All checks were successful
ci / build-test (push) Successful in 2m30s
ci / publish-image (push) Successful in 2m1s

This commit is contained in:
2026-03-30 23:03:53 -04:00
parent 0dd11e6351
commit adfbf654a6
6 changed files with 91 additions and 4 deletions

View File

@@ -439,6 +439,14 @@ public class VoiceWorkUpdater(AppDbContext dbContext, ITimeProvider timeProvider
dbContext.VoiceWorkSupportedLanguages.Add(voiceWorkSupportedLanguage);
}
}
foreach (string existingLinkCode in existingLanguageLinks.Keys)
{
if (!ingest.SupportedLanguages.Any(x => x.Code == existingLinkCode))
{
dbContext.VoiceWorkSupportedLanguages.Remove(existingLanguageLinks[existingLinkCode]);
}
}
}
private void UpsertSeries(VoiceWorkIngest ingest, VoiceWorkUpsertContext upsertContext)