-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat: Line Items API Routes #6478
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
a2b5811
to
b9dbe6f
Compare
550e37b
to
7a00c90
Compare
68ceb77
to
0aeeb0f
Compare
c286ad1
to
9aaba67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🔥 one todo around the deletion and few comments
const cart = await cartModuleService.retrieve(req.params.id, { | ||
select: ["id", "region_id", "currency_code"], | ||
relations: ["region", "items", "items.variant_id"], | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: should we use the remote query here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I chose to use the module service directly, as I don't need any other resources than what it internal to the cart module. Any specific reason you want to use the remote query?
What
POST /store/carts/:id/line-items
POST /store/carts/:id/line-items/:id
DELETE /store/carts/:id/line-items/:id
Outstanding
Depends on #6475 and #6449.