mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-16 07:12:18 +01:00
Apply review suggestion and fix entity concurrency tokens.
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user