-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Add to Cart Workflow broken since last update #10644
Comments
@fxmb, thanks for the report. How are you consuming the workflow? Its input type changed in the latest release. You should pass the I'll add this to the release notes. |
Ha that fixed it! Thanks for pointing this out so quickly For everyone else:
becomes:
|
Hey,
Is it normal that we can have We had the same error as @fxmb about
Our way to fix it force the version in our
By putting this at the root of our yarn workspace :
😿 |
The exact same issue is happening for me. |
Package.json file
The commit 8 hours ago broke the add to cart workflow I believe:
This query result from here: https://github.com/medusajs/medusa/blob/develop/packages/core/core-flows/src/cart/workflows/add-to-cart.ts#L47
returns the first cart that was created in the database.
I always get this error when trying to add to the cart using the addToCart Workflow:
Cart cart_01J801RD5JEWMPDS0V1AZZM0FP is already completed.
However, this cart (ending on FP) is not the one I am sending to the server, its an old cart from another customer...
This is the first cart ever created in our db, hence I assume some query is failing, sorted by date and returning the first [0] cart since its sorted by created_at.
Node.js version
20
Database and its version
16
Operating system name and version
..
Browser name
No response
What happended?
see above
Expected behavior
see above
Actual behavior
see above
Link to reproduction repo
no link
The text was updated successfully, but these errors were encountered: