fix
This commit is contained in:
@@ -103,7 +103,7 @@ public class AccountRepository : AppRepository<Account>, IAccountRepository
|
||||
{
|
||||
return _context.Accounts
|
||||
.Where(x => x.AccessRights!.Any(a => a.UserId == userId))
|
||||
.Where(x => x.Name.Contains(term))
|
||||
.Where(x => x.Name.ToLower().Contains(term.ToLower()))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ItemRepository : AppRepository<Item>, IItemRepository
|
||||
return _context
|
||||
.Items
|
||||
.Include(x => x.ItemGlobal)
|
||||
.Where(x => x.Category!.UserId == userId && x.ItemGlobal.Name.Contains(term))
|
||||
.Where(x => x.Category!.UserId == userId && x.ItemGlobal.Name.ToLower().Contains(term.ToLower()))
|
||||
.OrderByDescending(x => x!.Motions!.Count())
|
||||
.Take(limit)
|
||||
.ToList();
|
||||
|
||||
Reference in New Issue
Block a user