Skip to content

Commit

Permalink
refactor(api-sdk): update redeemInvite method and body
Browse files Browse the repository at this point in the history
  • Loading branch information
waddaboo committed Nov 1, 2024
1 parent ebbf4d6 commit 6cd256f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libs/api-sdk/src/invites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ export async function redeemInvite(
groupId: string,
apiKey: string
): Promise<Invite> {
const requestUrl = `${url}/redeem/${inviteCode}/group/${groupId}`
const requestUrl = `${url}/redeem`

const newConfig: any = {
method: "post",
method: "patch",
data: {
inviteCode,
groupId
},
...config
}

Expand Down

0 comments on commit 6cd256f

Please sign in to comment.