diff options
| author | Tobias Kloy <tobias.kloy@werde-volunteer.info> | 2025-02-07 22:20:35 +0100 |
|---|---|---|
| committer | Tobias Kloy <tobias.kloy@werde-volunteer.info> | 2025-02-07 22:20:35 +0100 |
| commit | 83f0f3d6295961961ae4b188cb573e05f33fb7a4 (patch) | |
| tree | 68e1a1219412690b0e8cdb9ffba4a5f4146199e5 | |
| parent | 3a4d67319af41162a1c58b290c76d8cb0d1ccbe0 (diff) | |
Optimise string handling in PeopleRepository filtering.
| -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 48db23619..a8dfd4cd3 100644 --- a/Jellyfin.Server.Implementations/Item/PeopleRepository.cs +++ b/Jellyfin.Server.Implementations/Item/PeopleRepository.cs @@ -158,7 +158,8 @@ public class PeopleRepository(IDbContextFactory<JellyfinDbContext> dbProvider, I if (!string.IsNullOrWhiteSpace(filter.NameContains)) { - query = query.Where(e => e.Name.ToUpper().Contains(filter.NameContains.ToUpper())); + var nameContainsUpper = filter.NameContains.ToUpper(); + query = query.Where(e => e.Name.ToUpper().Contains(nameContainsUpper)); } return query; |
