Apply review suggestion and fix entity concurrency tokens.
This commit is contained in:
parent
edbb1482e8
commit
585fdbad39
|
@ -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();
|
||||
|
|
|
@ -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 />
|
||||
|
|
Loading…
Reference in New Issue
Block a user