Skip to content

Commit

Permalink
chore: updating braze api key variable for enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakwana93 committed Sep 10, 2024
1 parent 2ac5dae commit f3eec74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions enterprise/api_client/braze.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class BrazeAPIClient(BrazeClient):
API client for calls to Braze.
"""
def __init__(self):
braze_api_key = getattr(settings, 'EDX_BRAZE_API_KEY', None)
braze_api_key = getattr(settings, 'ENTERPRISE_BRAZE_API_KEY', None)
braze_api_url = getattr(settings, 'EDX_BRAZE_API_SERVER', None)
required_settings = ['EDX_BRAZE_API_KEY', 'EDX_BRAZE_API_SERVER']
required_settings = ['ENTERPRISE_BRAZE_API_KEY', 'EDX_BRAZE_API_SERVER']
for setting in required_settings:
if not getattr(settings, setting, None):
msg = f'Missing {setting} in settings required for Braze API Client.'
Expand Down
2 changes: 1 addition & 1 deletion enterprise/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def root(*args):
ENTERPRISE_SSO_ORCHESTRATOR_CONFIGURE_PATH = 'configure'
ENTERPRISE_SSO_ORCHESTRATOR_CONFIGURE_EDX_OAUTH_PATH = 'configure-edx-oauth'

EDX_BRAZE_API_KEY='test-api-key'
ENTERPRISE_BRAZE_API_KEY='test-api-key'
EDX_BRAZE_API_SERVER='test-api-server'
BRAZE_GROUPS_INVITATION_EMAIL_CAMPAIGN_ID = 'test-invitation-campaign-id'
BRAZE_GROUPS_REMOVAL_EMAIL_CAMPAIGN_ID = 'test-removal-campaign-id'

0 comments on commit f3eec74

Please sign in to comment.