aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-31 17:00:57 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-31 17:00:57 -0400
commit585fdbad396a089e11717eb6ce52e60a07e900e9 (patch)
tree646e89b0f3e3e72468d57bc10748f73c903bb92b /Jellyfin.Server.Implementations
parentedbb1482e80d549391479df1911fe9077e62972d (diff)
Apply review suggestion and fix entity concurrency tokens.
Diffstat (limited to 'Jellyfin.Server.Implementations')
-rw-r--r--Jellyfin.Server.Implementations/JellyfinDb.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Jellyfin.Server.Implementations/JellyfinDb.cs b/Jellyfin.Server.Implementations/JellyfinDb.cs
index ae783efd8..d3c0267e8 100644
--- a/Jellyfin.Server.Implementations/JellyfinDb.cs
+++ b/Jellyfin.Server.Implementations/JellyfinDb.cs
@@ -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();