Skip to content

Commit

Permalink
fix: revalidate invite cache even if email delivery fails (#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamPalriwala committed Dec 22, 2023
1 parent ab22c02 commit 6ac48a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/lib/invite/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,11 @@ export const inviteUser = async ({
},
});

await sendInviteMemberEmail(invite.id, email, currentUserName, name);

inviteCache.revalidate({
id: invite.id,
teamId: invite.teamId,
});

await sendInviteMemberEmail(invite.id, email, currentUserName, name);
return invite;
};

2 comments on commit 6ac48a2

@vercel
Copy link

@vercel vercel bot commented on 6ac48a2 Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 6ac48a2 Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

formbricks-com – ./apps/formbricks-com

formbricks-com-git-main-formbricks.vercel.app
formbricks-com-formbricks.vercel.app
formbricks-com.vercel.app
www.formbricks.com
formbricks.com

Please sign in to comment.