Skip to content

Commit

Permalink
chore: move LmsApiClient to a class attr
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz committed Nov 26, 2024
1 parent be1e550 commit 4eaa45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enterprise_access/apps/bffs/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def __init__(self, context):

# API Clients
self.license_manager_user_api_client = LicenseManagerUserApiClient(self.context.request)
self.lms_api_client = LmsApiClient()

def load_and_process(self):
"""
Expand Down Expand Up @@ -458,9 +459,8 @@ def enroll_in_redeemable_default_enterprise_enrollment_intentions(self):
'is_default_auto_enrollment': True,
})

client = LmsApiClient()
try:
response_payload = client.bulk_enroll_enterprise_learners(
response_payload = self.lms_api_client.bulk_enroll_enterprise_learners(
self.context.enterprise_customer_uuid,
bulk_enrollment_payload,
)
Expand Down

0 comments on commit 4eaa45d

Please sign in to comment.