From 6bcc7aa79f26225f7c433a5a290a8f3d98794d4b Mon Sep 17 00:00:00 2001 From: JPVenson Date: Thu, 14 Nov 2024 06:06:09 +0000 Subject: [PATCH] Updated comments/TODOs --- Jellyfin.Server.Implementations/Item/PeopleRepository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Server.Implementations/Item/PeopleRepository.cs b/Jellyfin.Server.Implementations/Item/PeopleRepository.cs index 0812955a88..417212ba4d 100644 --- a/Jellyfin.Server.Implementations/Item/PeopleRepository.cs +++ b/Jellyfin.Server.Implementations/Item/PeopleRepository.cs @@ -61,7 +61,8 @@ public class PeopleRepository(IDbContextFactory dbProvider, I using var transaction = context.Database.BeginTransaction(); context.PeopleBaseItemMap.Where(e => e.ItemId == itemId).ExecuteDelete(); - foreach (var item in people.DistinctBy(e => e.Id)) // yes for __SOME__ reason there can be duplicates. + // TODO: yes for __SOME__ reason there can be duplicates. + foreach (var item in people.DistinctBy(e => e.Id)) { var personEntity = Map(item); var existingEntity = context.Peoples.FirstOrDefault(e => e.Id == personEntity.Id);