Commit 5ba5bf63 authored by Jesús Espino's avatar Jesús Espino
Browse files

MM-14748: Allow to invalidate email invites (#798)

parent 0f5765a5
......@@ -582,3 +582,9 @@ export function updateTeamMemberSchemeRoles(
onSuccess: TeamTypes.UPDATED_TEAM_MEMBER_SCHEME_ROLES,
});
}
export function invalidateAllEmailInvites(): ActionFunc {
return bindClientFunc({
clientFunc: Client4.invalidateAllEmailInvites,
});
}
......@@ -1055,6 +1055,13 @@ export default class Client4 {
);
};
invalidateAllEmailInvites = async () => {
return this.doFetch(
`${this.getTeamsRoute()}/invites/email`,
{method: 'delete'}
);
};
getTeamInviteInfo = async (inviteId) => {
return this.doFetch(
`${this.getTeamsRoute()}/invite/${inviteId}`,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment