Skip to content

Commit

Permalink
Merge pull request #481 from bandada-infra/fix/api-sdk
Browse files Browse the repository at this point in the history
Fix minor issues on API SDK
  • Loading branch information
vplasencia authored Apr 9, 2024
2 parents 917732b + 24ec186 commit 50f69ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/api-sdk/src/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export async function updateGroup(
const requestUrl = `${url}/${groupId}`

const newConfig: any = {
method: "put",
method: "patch",
data: groupUpdateDetails,
...config
}
Expand Down
4 changes: 3 additions & 1 deletion libs/api-sdk/src/invites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export async function createInvite(
): Promise<Invite> {
const newConfig: any = {
method: "post",
data: groupId,
data: {
groupId
},
...config
}

Expand Down
6 changes: 3 additions & 3 deletions libs/api-sdk/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export type GroupCreationDetails = {
}

export type GroupUpdateDetails = {
description: string
treeDepth: number
fingerprintDuration: number
description?: string
treeDepth?: number
fingerprintDuration?: number
credentials?: Credential
}

Expand Down

0 comments on commit 50f69ce

Please sign in to comment.