Skip to content

Commit

Permalink
TLK-1725 - Slack tool pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneLightsOn committed Oct 24, 2024
1 parent 326a5a3 commit 8df6946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/tools/slack/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self):
settings = Settings()
self.SLACK_CLIENT_ID = settings.tools.slack.client_id if settings.tools and settings.tools.slack else None
self.SLACK_CLIENT_SECRET = settings.tools.slack.client_secret if settings.tools and settings.tools.slack else None
self.USER_SCOPES = settings.tools.slack.user_scopes if settings.tools and settings.tools.slack else self.DEFAULT_USER_SCOPES or []
self.USER_SCOPES = settings.tools.slack.user_scopes if settings.tools and settings.tools.slack else self.DEFAULT_USER_SCOPES
self.REDIRECT_URL = f"{self.BACKEND_HOST}/v1/tool/auth"

if (
Expand All @@ -50,7 +50,7 @@ def get_auth_url(self, user_id: str) -> str:

params = {
"client_id": self.SLACK_CLIENT_ID,
"user_scope": " ".join(self.USER_SCOPES),
"user_scope": " ".join(self.USER_SCOPES or []),
"redirect_uri": self.REDIRECT_URL,
"state": json.dumps(state),
}
Expand Down

0 comments on commit 8df6946

Please sign in to comment.