feat(core-flows,medusa): remove cart customer validation + rename workflow (#10207)

what:

- removes cart customer takeover validation
- change workflow from update to transfer
This commit is contained in:
Riqwan Thamir
2024-11-21 16:57:03 +00:00
committed by GitHub
parent 5f9029c033
commit 6486f2bcce
6 changed files with 80 additions and 150 deletions
@@ -1,4 +1,4 @@
import { updateCartCustomerWorkflow } from "@medusajs/core-flows"
import { transferCartCustomerWorkflow } from "@medusajs/core-flows"
import { HttpTypes } from "@medusajs/framework/types"
import {
@@ -11,7 +11,7 @@ export const POST = async (
req: AuthenticatedMedusaRequest,
res: MedusaResponse<HttpTypes.StoreCartResponse>
) => {
const workflow = updateCartCustomerWorkflow(req.scope)
const workflow = transferCartCustomerWorkflow(req.scope)
await workflow.run({
input: {