Skip to content

Commit

Permalink
Merge pull request #4652 from systeminit/fix(auth-api)-Ensure-we-set-…
Browse files Browse the repository at this point in the history
…the-correct-events-for-inviting-a-user

fix(auth-api): Ensure we set the correct events for inviting a user
  • Loading branch information
stack72 authored Sep 20, 2024
2 parents 7930a9a + 4f40610 commit 5ad43f0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bin/auth-api/src/services/workspaces.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ export async function inviteMember(
memberAddedAt: new Date(),
invitedBy: authUser.email,
});
} else {
tracker.trackEvent(authUser, "workspace_existing_user_invited", {
workspaceId: id,
memberAdded: email,
memberAddedAt: new Date(),
invitedBy: authUser.email,
});
}

tracker.trackEvent(authUser, "workspace_existing_user_invited", {
workspaceId: id,
memberAdded: email,
memberAddedAt: new Date(),
invitedBy: authUser.email,
});

return await prisma.workspaceMembers.create({
data: {
id: ulid(),
Expand Down

0 comments on commit 5ad43f0

Please sign in to comment.