chore: remove container registration name (#9137)
This commit is contained in:
1 parent
ab4a422fc8
commit
950cf9af79
421 files changed
+1528
-2496
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { CreateCustomerDTO, MedusaContainer } from "@medusajs/types"
|
||||
import { Modules } from "@medusajs/utils"
|
||||
|
||||
import { ModuleRegistrationName } from "@medusajs/utils"
|
||||
import jwt from "jsonwebtoken"
|
||||
|
||||
export const createAuthenticatedCustomer = async (
|
||||
@@ -8,10 +8,8 @@ export const createAuthenticatedCustomer = async (
|
||||
customerData: Partial<CreateCustomerDTO> = {}
|
||||
) => {
|
||||
const { http } = appContainer.resolve("configModule").projectConfig
|
||||
const authService = appContainer.resolve(ModuleRegistrationName.AUTH)
|
||||
const customerModuleService = appContainer.resolve(
|
||||
ModuleRegistrationName.CUSTOMER
|
||||
)
|
||||
const authService = appContainer.resolve(Modules.AUTH)
|
||||
const customerModuleService = appContainer.resolve(Modules.CUSTOMER)
|
||||
|
||||
const customer = await customerModuleService.createCustomers({
|
||||
first_name: "John",
|
||||
|
||||
@@ -24,7 +24,7 @@ export const createVariantPriceSet = async ({
|
||||
}): Promise<PriceSetDTO> => {
|
||||
const remoteLink = container.resolve("remoteLink")
|
||||
const pricingModuleService: IPricingModuleService = container.resolve(
|
||||
"pricingModuleService"
|
||||
Modules.PRICING
|
||||
)
|
||||
|
||||
const priceSet = await pricingModuleService.createPriceSets({
|
||||
|
||||
Reference in new issue
Block a user