chore: remove container registration name (#9137)

This commit is contained in:
Carlos R. L. Rodrigues
2024-09-16 06:22:24 -03:00
committed by GitHub
parent ab4a422fc8
commit 950cf9af79
421 changed files with 1528 additions and 2496 deletions
@@ -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",