Skip to content

Commit

Permalink
Updated enterprise env var example
Browse files Browse the repository at this point in the history
  • Loading branch information
DishenWang2023 committed May 26, 2024
1 parent 2380584 commit 6f844bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion services/enterprise/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ POSTHOG_HOST=
SSH_PRIVATE_KEY_PASSWORD=
SSH_PATH_TO_CREDENTIAL_FILE=

# Optional stripe env vars if organizations are not on ENTERPRISE plan
# Optional stripe env vars if organizations are only on ENTERPRISE plan (organization.invoice_details.plan = "ENTERPRISE")
# Otherwise you would need to create a new stripe account and fillout the env vars below
STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=
SQL_GENERATION_PRICE_ID=
Expand Down
2 changes: 1 addition & 1 deletion services/enterprise/utils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _decode_payload(self):

class Authorize:
def user(self, payload: dict) -> User:
sub = payload['sub']
sub = payload["sub"]
user = user_service.get_user_by_sub(sub)
if not user:
raise UnauthorizedUserError(email=sub)
Expand Down

0 comments on commit 6f844bd

Please sign in to comment.