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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user