Skip to content

Commit 815e133

Browse files
authored
Compare membership with teamId (calcom#22957)
1 parent 7c8dbb3 commit 815e133

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/features/ee/dsync/lib/handleGroupEvents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const handleGroupEvents = async (event: DirectorySyncEvent, organizationId: numb
185185
});
186186

187187
// Send emails to new members
188-
const newMembers = users.filter((user) => !user.teams.find((team) => team.id === group.teamId));
188+
const newMembers = users.filter((user) => !user.teams.find((team) => team.teamId === group.teamId));
189189
const newOrgMembers = users.filter(
190190
(user) => !user.profiles.find((profile) => profile.organizationId === organizationId)
191191
);

0 commit comments

Comments
 (0)