fix: address org invite resend

This commit is contained in:
Sheen Capadngan
2025-01-17 01:42:35 +08:00
parent b440e918ac
commit c592ff00a6
6 changed files with 149 additions and 40 deletions
+15
View File
@@ -156,3 +156,18 @@ export const useCreateNewTotpRecoveryCodes = () => {
}
});
};
export const useResendOrgMemberInvitation = () => {
return useMutation({
mutationFn: async (dto: { membershipId: string }) => {
const { data } = await apiRequest.post<{
signupToken?: {
email: string;
link: string;
};
}>("/api/v1/invite-org/signup/resend", dto);
return data.signupToken;
}
});
};