Skip to content

Commit

Permalink
feat: pick active connection only
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-dixit committed Jan 3, 2025
1 parent 93886f8 commit 9c07c50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/src/sdk/base.toolset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ export class ComposioToolSet {
// fetch connected account id
const connectedAccounts = await this.client.connectedAccounts.list({
user_uuid: entityId,
status: "ACTIVE",
showActiveOnly: true,
});
accountId = connectedAccounts?.items[0]?.id;
}
Expand Down

0 comments on commit 9c07c50

Please sign in to comment.