Skip to content

Commit

Permalink
fix: obtain course images from image_url.
Browse files Browse the repository at this point in the history
  • Loading branch information
anfbermudezme committed Nov 3, 2023
1 parent 4113cc0 commit f2f6f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecommerce/extensions/api/v2/views/vouchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def get_course_offer_data(
image = course_info['card_image_url']
else:
# Get the course image from the LMS course API format.
image = course_info.get('media', {}).get('image', {}).get('raw', '')
image = course_info.get('image_url', '')
return {
'benefit': serializers.BenefitSerializer(benefit).data,
'contains_verified': is_verified,
Expand Down

0 comments on commit f2f6f9d

Please sign in to comment.