Revert to local

This commit is contained in:
Catalin Pinte 2022-10-12 15:08:10 +03:00
parent 483b608e0c
commit 51c625d283
2 changed files with 5 additions and 2 deletions

View File

@ -42,6 +42,9 @@ const cartEndpoint: GetAPISchema<
// Create or add an item to the cart
if (req.method === 'POST') {
const body = addItemBodySchema.parse({ ...input, cartId })
if (!body.item.quantity) {
body.item.quantity = 1
}
output = await handlers['addItem']({ ...ctx, body })
}

View File

@ -23,8 +23,8 @@
"@components/*": ["components/*"],
"@commerce": ["../packages/commerce/src"],
"@commerce/*": ["../packages/commerce/src/*"],
"@framework": ["../packages/vendure/src"],
"@framework/*": ["../packages/vendure/src/*"]
"@framework": ["../packages/local/src"],
"@framework/*": ["../packages/local/src/*"]
}
},
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],