docs: replace ModuleRegistrationName with Modules (#9142)

This commit is contained in:
Shahed Nasser
2024-09-16 15:30:03 +03:00
committed by GitHub
parent 8829f89402
commit 8584031041
55 changed files with 389 additions and 391 deletions
@@ -1495,7 +1495,6 @@ import {
} from "@medusajs/types"
import {
Modules,
ModuleRegistrationName,
} from "@medusajs/utils"
import { createOrdersWorkflow } from "@medusajs/core-flows"
import { SubscriptionData } from "../../../modules/subscription/types"
@@ -1624,7 +1623,7 @@ Finally, replace the `TODO` in the compensation function to cancel the order in
```ts title="src/workflows/create-subscription-order/steps/create-subscription-order.ts"
const orderModuleService: IOrderModuleService = container.resolve(
ModuleRegistrationName.ORDER
Modules.ORDER
)
await orderModuleService.cancel(order.id)