Skip to content

Commit

Permalink
Fix a bug where SQLAlchemy based InstallationStore is missing client_…
Browse files Browse the repository at this point in the history
…id in queries (#1354)
  • Loading branch information
seratch authored Apr 18, 2023
1 parent bd9c2f5 commit 9d9dce0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion slack_sdk/oauth/installation_store/sqlalchemy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ def find_installation(
team_id = None

c = self.installations.c
where_clause = and_(c.enterprise_id == enterprise_id, c.team_id == team_id)
where_clause = and_(
c.client_id == self.client_id,
c.enterprise_id == enterprise_id,
c.team_id == team_id,
)
if user_id is not None:
where_clause = and_(
c.client_id == self.client_id,
Expand Down

0 comments on commit 9d9dce0

Please sign in to comment.