The Free Software Media System - Server Backend & API
Updated comments/TODOs
JPVenson6bcc7aa79f26
diff --git a/Jellyfin.Server.Implementations/Item/PeopleRepository.cs b/Jellyfin.Server.Implementations/Item/PeopleRepository.csindex 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<JellyfinDbContext> dbProvider, Iusing 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);