From 328c2ca21cab61f70f74f75d2faa23d3be604c60 Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Thu, 8 Dec 2022 07:41:46 -0800 Subject: [PATCH] [EC-812] Fix broken EF update user groups query (#2479) --- .../Repositories/Queries/GroupUserUpdateGroupsQuery.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure.EntityFramework/Repositories/Queries/GroupUserUpdateGroupsQuery.cs b/src/Infrastructure.EntityFramework/Repositories/Queries/GroupUserUpdateGroupsQuery.cs index dacbabb280..df04072a3a 100644 --- a/src/Infrastructure.EntityFramework/Repositories/Queries/GroupUserUpdateGroupsQuery.cs +++ b/src/Infrastructure.EntityFramework/Repositories/Queries/GroupUserUpdateGroupsQuery.cs @@ -36,7 +36,7 @@ public class GroupUserUpdateGroupsInsertQuery : IQuery on g.OrganizationId equals ou.OrganizationId join gie in groupIdEntities on g.Id equals gie.Id - where !dbContext.GroupUsers.Any(gu => _groupIds.Contains(gu.GroupId) && gu.OrganizationUserId == _organizationUserId) + where !dbContext.GroupUsers.Any(gu => gu.GroupId == gie.Id && gu.OrganizationUserId == _organizationUserId) select g; return query.Select(x => new GroupUser {