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