Skip to content

Commit 9d9dce0

Browse files
authored
Fix a bug where SQLAlchemy based InstallationStore is missing client_id in queries (#1354)
1 parent bd9c2f5 commit 9d9dce0

File tree

1 file changed

+5
-1
lines changed
  • slack_sdk/oauth/installation_store/sqlalchemy

1 file changed

+5
-1
lines changed

slack_sdk/oauth/installation_store/sqlalchemy/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,11 @@ def find_installation(
247247
team_id = None
248248

249249
c = self.installations.c
250-
where_clause = and_(c.enterprise_id == enterprise_id, c.team_id == team_id)
250+
where_clause = and_(
251+
c.client_id == self.client_id,
252+
c.enterprise_id == enterprise_id,
253+
c.team_id == team_id,
254+
)
251255
if user_id is not None:
252256
where_clause = and_(
253257
c.client_id == self.client_id,

0 commit comments

Comments
 (0)