diff options
| author | JPVenson <github@jpb.email> | 2024-11-14 06:06:09 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2024-11-14 06:06:09 +0000 |
| commit | 6bcc7aa79f26225f7c433a5a290a8f3d98794d4b (patch) | |
| tree | 96fe8558c9df2a926a00ac7e54b35ea207bf2ae0 | |
| parent | ffc18a204463b14183ae50e71147a4ce6047c3be (diff) | |
Updated comments/TODOs
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/PeopleRepository.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/PeopleRepository.cs b/Jellyfin.Server.Implementations/Item/PeopleRepository.cs index 0812955a8..417212ba4 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, 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); |
