From 4a0eb969332577124dca09a21b2e302e4283a5ff Mon Sep 17 00:00:00 2001 From: shreddedbacon Date: Fri, 8 Sep 2023 19:45:23 +1000 Subject: [PATCH] fix: reset exists check at the end of the loop --- services/api/src/resources/organization/resolvers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/src/resources/organization/resolvers.ts b/services/api/src/resources/organization/resolvers.ts index 7d1401dcb9..67d9b0b4e0 100644 --- a/services/api/src/resources/organization/resolvers.ts +++ b/services/api/src/resources/organization/resolvers.ts @@ -372,8 +372,8 @@ export const getUsersByOrganizationId: ResolverFn = async ( } } members.push(groupMembers[member].user) - exists = false } + exists = false } } return members.map(row => ({ ...row, organization: args.organization }));