aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-02-02 12:27:06 +0100
committerBond_009 <bond.009@outlook.com>2019-02-02 12:27:06 +0100
commit1385d89df6d6af178dcfdfa1dee6346c6efcad2a (patch)
treed04c9666c3e9eed90e9c6c8a4832b03af49ceceb /Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
parent8b073e2ba5e4b1dafc7ef11554cd13ef59339a5c (diff)
Remove MoreLINQ
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs')
-rw-r--r--Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
index 9e71ffceb..69784e410 100644
--- a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
+++ b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
@@ -121,7 +121,8 @@ namespace Emby.Server.Implementations.EntryPoints
var user = _userManager.GetUserById(userId);
var dtoList = changedItems
- .DistinctBy(i => i.Id)
+ .GroupBy(x => x.Id)
+ .Select(x => x.First())
.Select(i =>
{
var dto = _userDataManager.GetUserDataDto(i, user);