Apply review suggestion and fix entity concurrency tokens.

This commit is contained in:
Patrick Barron 2020-05-31 17:00:57 -04:00
parent edbb1482e8
commit 585fdbad39
2 changed files with 5 additions and 1 deletions

View File

@ -81,6 +81,7 @@ namespace Jellyfin.Server.Implementations
{
foreach (var saveEntity in ChangeTracker.Entries()
.Where(e => e.State == EntityState.Modified)
.Select(entry => entry.Entity)
.OfType<ISavingChanges>())
{
saveEntity.OnSavingChanges();

View File

@ -84,8 +84,11 @@ namespace Jellyfin.Server
/// <inheritdoc />
protected override IEnumerable<Assembly> GetAssembliesWithPartsInternal()
{
// Jellyfin.Server
yield return typeof(CoreAppHost).Assembly;
yield return Assembly.Load("Jellyfin.Server.Implementations");
// Jellyfin.Server.Implementations
yield return typeof(JellyfinDb).Assembly;
}
/// <inheritdoc />