From 7bccfe73948394a017088e000ca1985b54050bd3 Mon Sep 17 00:00:00 2001 From: berkansasmaz Date: Fri, 24 Dec 2021 18:04:04 +0300 Subject: [PATCH] Update EventAppService.cs --- src/EventHub.Application/Events/EventAppService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/EventHub.Application/Events/EventAppService.cs b/src/EventHub.Application/Events/EventAppService.cs index 18811a5..e82aa9c 100644 --- a/src/EventHub.Application/Events/EventAppService.cs +++ b/src/EventHub.Application/Events/EventAppService.cs @@ -409,11 +409,10 @@ namespace EventHub.Events var userQueryable = await _userRepository.GetQueryableAsync(); var query = userQueryable - .Where(u => userNames.Any(p => p == u.UserName)) + .Where(u => userNames.Contains(u.UserName)) .Select(x => x.Id); var userIds = await AsyncExecuter.ToListAsync(query); - if (userIds.Count != userNames.Count) { await CheckIfValidUserNamesAsync(userNames);