mirror of
https://github.com/formbricks/formbricks.git
synced 2026-03-03 10:09:16 -06:00
fix: revalidate invite cache even if email delivery fails (#1823)
This commit is contained in:
committed by
GitHub
parent
ab22c0297e
commit
6ac48a26bb
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user