Updated various parts of scanning and ingestion, either for bug fixes, or for enhancements.
This commit is contained in:
@@ -130,7 +130,7 @@ schemaDumpCommand.SetAction(async (parseResult, cancellationToken) =>
|
||||
|
||||
var sql = db.Database.GenerateCreateScript();
|
||||
var outPath = Path.GetFullPath("desired.sql");
|
||||
await File.WriteAllTextAsync(outPath, sql);
|
||||
await File.WriteAllTextAsync(outPath, sql, cancellationToken);
|
||||
|
||||
Console.WriteLine($"[OK] Wrote EF model create script to: {outPath}");
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
/*"Default": "Information",*/
|
||||
"Default": "Warning",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user