Updated scanner and table names.
This commit is contained in:
@@ -8,7 +8,7 @@ public sealed class VoiceWorkLocalizationConfiguration : IEntityTypeConfiguratio
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<VoiceWorkLocalization> builder)
|
||||
{
|
||||
builder.ToTable("voice_work_localizations");
|
||||
builder.ToTable("VoiceWorkLocalizations");
|
||||
builder.HasKey(x => x.VoiceWorkLocalizationId);
|
||||
|
||||
builder.Property(x => x.Language).IsRequired().HasMaxLength(10);
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class VoiceWorkSearchConfiguration : IEntityTypeConfiguration<Voic
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<VoiceWorkSearch> builder)
|
||||
{
|
||||
builder.ToTable("VoiceWorkSearches2");
|
||||
builder.ToTable("VoiceWorkSearches");
|
||||
builder.HasKey(x => x.VoiceWorkId); // also the FK
|
||||
|
||||
builder.Property(x => x.SearchText).IsRequired(); // TEXT/LONGTEXT
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class VoiceWorkSupportedLanguageConfiguration : IEntityTypeConfigu
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<VoiceWorkSupportedLanguage> builder)
|
||||
{
|
||||
builder.ToTable("voice_work_supported_languages");
|
||||
builder.ToTable("VoiceWorkSupportedLanguages");
|
||||
builder.HasKey(x => x.VoiceWorkSupportedLanguageId);
|
||||
|
||||
builder.Property(x => x.Language).IsRequired().HasMaxLength(10);
|
||||
|
||||
@@ -28,6 +28,9 @@ public class VoiceWorkUpdater(AppDbContext dbContext, ITimeProvider timeProvider
|
||||
}
|
||||
|
||||
result.Status = Upsert(ingest, upsertContext);
|
||||
|
||||
VoiceWork voiceWork = upsertContext.VoiceWorks[ingest.ProductId];
|
||||
result.UpdateStatus = (VoiceWorkStatus)voiceWork.Status;
|
||||
}
|
||||
|
||||
await dbContext.SaveChangesAsync(cancellationToken);
|
||||
@@ -125,7 +128,7 @@ public class VoiceWorkUpdater(AppDbContext dbContext, ITimeProvider timeProvider
|
||||
|
||||
if (voiceWork.SalesDate is not null && ingest.SalesDate is null)
|
||||
{
|
||||
string message = $"Voice work has a sales date of {voiceWork.SalesDate.Value.ToShortDateString()}, but ingest does not";
|
||||
string message = $"Voice work has a sales date of {voiceWork.SalesDate.Value:d}, but ingest does not";
|
||||
result.Issues.Add(new(message, VoiceWorkUpsertIssueSeverity.Error));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user