mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Optimise string handling in PeopleRepository filtering.
This commit is contained in:
parent
3a4d67319a
commit
83f0f3d629
@ -158,7 +158,8 @@ public class PeopleRepository(IDbContextFactory<JellyfinDbContext> dbProvider, I
|
|||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(filter.NameContains))
|
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;
|
return query;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user