Updated various parts of scanning and ingestion, either for bug fixes, or for enhancements.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using JSMR.Application.Enums;
|
||||
using JSMR.Application.Scanning;
|
||||
using JSMR.Application.Scanning.Ports;
|
||||
using JSMR.Infrastructure.Common.Time;
|
||||
using JSMR.Worker.Options;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
@@ -48,6 +49,27 @@ public sealed class PagedScanRunner(
|
||||
|
||||
ScanVoiceWorksResponse response = await handler.HandleAsync(request, cancellationToken);
|
||||
|
||||
//int newUpcoming = response.Results.Where(x => x.IsNewUpcoming == true).Count();
|
||||
|
||||
//if (newUpcoming > 0)
|
||||
// updatedInfo.Add($"{newUpcoming} new upcoming work(s)");
|
||||
|
||||
//int newOnSale = result.ScannedVoiceWorks.Where(x => x.IsNewOnSale == true).Count();
|
||||
|
||||
//if (newOnSale > 0)
|
||||
// updatedInfo.Add($"{newOnSale} new work(s) on sale");
|
||||
|
||||
IEnumerable<VoiceWorkUpsertResult> resultsWithIssues = response.Results.Where(x => x.Issues.Count > 0);
|
||||
|
||||
//foreach (VoiceWorkUpsertResult resultWithIssues in resultsWithIssues)
|
||||
//{
|
||||
// log.LogWarning($"PRoblem with {resultWithIssues.}")
|
||||
// string messageToDisplay = $"{scannedVoiceWork.ProductId} - {scannedVoiceWork.ProductName} -- {message}";
|
||||
|
||||
// Console.WriteLine(messageToDisplay);
|
||||
// messages.Add(messageToDisplay);
|
||||
//}
|
||||
|
||||
// Save checkpoint
|
||||
await checkpoints.SaveLastPageAsync(options.Locale, currentPage, cancellationToken);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user