2 bug fixes which prevented saving to db
This commit is contained in:
parent
95ae8335a1
commit
c7891dc448
@ -21,6 +21,7 @@ namespace ApplicationServices
|
||||
using var context = DbContexts.GetContext();
|
||||
var libImporter = new LibraryImporter(context);
|
||||
var newCount = await Task.Run(() => libImporter.Import(items));
|
||||
context.SaveChanges();
|
||||
Serilog.Log.Logger.Debug($"Import: New count {newCount}");
|
||||
|
||||
await Task.Run(() => SearchEngineCommands.FullReIndex());
|
||||
|
||||
@ -13,7 +13,7 @@ namespace DtoImporterService
|
||||
|
||||
public ImporterBase(LibationContext context)
|
||||
{
|
||||
ArgumentValidator.EnsureNotNull(DbContext, nameof(context));
|
||||
ArgumentValidator.EnsureNotNull(context, nameof(context));
|
||||
DbContext = context;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user