Skip to content

Commit

Permalink
fix: filter connections by entity [ENG-2523] (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaavee315 authored and abhishekpatil4 committed Jan 20, 2025
1 parent bd7906e commit 058121e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/composio/tools/toolset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,9 @@ def get_connected_account(self, id: str) -> ConnectedAccountModel:
return self.client.connected_accounts.get(connection_id=id)

def get_connected_accounts(self) -> t.List[ConnectedAccountModel]:
return self.client.connected_accounts.get()
return self.client.connected_accounts.get(
entity_ids=[self.entity_id] if self.entity_id else None
)

def get_entity(self, id: t.Optional[str] = None) -> Entity:
"""Get entity object for given ID."""
Expand Down

0 comments on commit 058121e

Please sign in to comment.