Skip to content

Commit

Permalink
Change decline invitation call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Candel authored and Ramon Candel committed May 7, 2024
1 parent d28dd77 commit 6174198
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/workspaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,7 @@ export class Workspaces {
}

public declineInvitation(inviteId: string, token: string): Promise<void> {
return this.client.post<void>(
'workspaces/invitations/decline',
{
inviteId,
},
this.getRequestHeaders(token),
);
return this.client.delete<void>(`workspaces/invitations/${inviteId}`, this.getRequestHeaders(token));
}
}

Expand Down

0 comments on commit 6174198

Please sign in to comment.