Course missing productId after publishing

Edgecase: The course after publishing is not updated with the proper productId. This productId relates the course to the product in our DB which in turn is related to the stripe product.

How the issue was found:

The frontend was sending and id = null to the BE payment/products, meaning the course that the FE received did not have the productId set. This caused the Buy button to throw a 500 error when calling the endpoint.

Frontend flow:

courseStore → paymentStore → onCheckout() → getProductById()

Backend:

apps/course/src/app/courses/service/courses-upsert.service.ts

Trace id:

Domain
Course
Action
fix
Department
Backend

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
🛠️

Bug & Fixes

Date

About 5 hours ago

Author

Carla Onate Gardella

Subscribe to post

Get notified by email when there are changes.