diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-08-31 11:00:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 11:00:28 +0200 |
| commit | 9a2f2aac220ee44deef61c6127b96a491f390322 (patch) | |
| tree | cee5f8968c521050664199f5d51978b71f271d22 /Jellyfin.Server.Implementations | |
| parent | ed756dfe9636ebe246d027011a65c597f4ae04cf (diff) | |
| parent | acb213e4b8edf1c55f615fa8d0079f0fb7fdea68 (diff) | |
Merge pull request #4018 from barronpm/library-entity-cleanup
Library Entity Cleanup
Diffstat (limited to 'Jellyfin.Server.Implementations')
| -rw-r--r-- | Jellyfin.Server.Implementations/JellyfinDb.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/JellyfinDb.cs b/Jellyfin.Server.Implementations/JellyfinDb.cs index 7d864ebc69..08e4db3880 100644 --- a/Jellyfin.Server.Implementations/JellyfinDb.cs +++ b/Jellyfin.Server.Implementations/JellyfinDb.cs @@ -2,8 +2,8 @@ using System; using System.Linq; -using Jellyfin.Data; using Jellyfin.Data.Entities; +using Jellyfin.Data.Interfaces; using Microsoft.EntityFrameworkCore; namespace Jellyfin.Server.Implementations @@ -130,7 +130,7 @@ namespace Jellyfin.Server.Implementations foreach (var saveEntity in ChangeTracker.Entries() .Where(e => e.State == EntityState.Modified) .Select(entry => entry.Entity) - .OfType<ISavingChanges>()) + .OfType<IHasConcurrencyToken>()) { saveEntity.OnSavingChanges(); } |
