Fixed voice work updater bug. Added integration tests for voice work search updates (Japanese).
All checks were successful
ci / build-test (push) Successful in 2m27s
ci / publish-image (push) Has been skipped

This commit is contained in:
2026-03-05 23:29:29 -05:00
parent 61f2e64972
commit 1d40013837
10 changed files with 171 additions and 5 deletions

View File

@@ -35,6 +35,18 @@ public class VoiceWorkUpdater(AppDbContext dbContext, ITimeProvider timeProvider
await dbContext.SaveChangesAsync(cancellationToken);
foreach (VoiceWorkIngest ingest in ingests)
{
VoiceWorkUpsertResult result = upsertContext.Results[ingest.ProductId];
if (result.Status is VoiceWorkUpsertStatus.Skipped)
continue;
VoiceWork voiceWork = upsertContext.VoiceWorks[ingest.ProductId];
result.VoiceWorkId = voiceWork.VoiceWorkId;
}
return [.. upsertContext.Results.Select(x => x.Value)];
}