From 3a201e7520ef00183ceb9e7b8d859eded2d6dfa9 Mon Sep 17 00:00:00 2001 From: Justin Baur <19896123+justindbaur@users.noreply.github.com> Date: Fri, 2 Dec 2022 22:21:13 -0500 Subject: [PATCH] [PS-1961] Fix Admin Email Search (#2466) --- .../Repositories/UserRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure.EntityFramework/Repositories/UserRepository.cs b/src/Infrastructure.EntityFramework/Repositories/UserRepository.cs index 8ab7ff7905..fd4a977995 100644 --- a/src/Infrastructure.EntityFramework/Repositories/UserRepository.cs +++ b/src/Infrastructure.EntityFramework/Repositories/UserRepository.cs @@ -47,7 +47,7 @@ public class UserRepository : Repository, IUserR { users = await GetDbSet(dbContext) .Where(e => e.Email == null || - EF.Functions.ILike(EF.Functions.Collate(e.Email, "default"), "a%")) + EF.Functions.ILike(EF.Functions.Collate(e.Email, "default"), $"{email}%")) .OrderBy(e => e.Email) .Skip(skip).Take(take) .ToListAsync();