docs: add best practices doc for third-party syncing (#14203)

* docs: add best practices doc for third-party syncing

* small fix
This commit is contained in:
Shahed Nasser
2025-12-03 15:47:41 +02:00
committed by GitHub
parent 471ab72ecb
commit 2087c8d155
7 changed files with 2772 additions and 307 deletions
@@ -151,7 +151,7 @@ import { createWorkflow } from "@medusajs/framework/workflows-sdk"
import {
acquireLockStep,
releaseLockStep,
completeCartWorkflow
completeCartWorkflow,
} from "@medusajs/medusa/core-flows"
type WorkflowInput = {
@@ -172,7 +172,7 @@ export const customCompleteCartWorkflow = createWorkflow(
completeCartWorkflow.runAsStep({
input: {
id: input.cart_id,
}
},
})
// release the lock after the nested workflow is complete