Fixed voice work updater bug. Added integration tests for voice work search updates (Japanese).
This commit is contained in:
@@ -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)];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user