chore: remove container registration name (#9137)
This commit is contained in:
@@ -31,7 +31,7 @@ moduleIntegrationTestRunner<IUserModuleService>({
|
||||
jwt_secret: "test",
|
||||
},
|
||||
injectedDependencies: {
|
||||
eventBusModuleService: new MockEventBusService(),
|
||||
[Modules.EVENT_BUS]: new MockEventBusService(),
|
||||
},
|
||||
testSuite: ({ service }) => {
|
||||
describe("UserModuleService - Invite", () => {
|
||||
|
||||
@@ -25,7 +25,7 @@ moduleIntegrationTestRunner<IUserModuleService>({
|
||||
jwt_secret: "test",
|
||||
},
|
||||
injectedDependencies: {
|
||||
eventBusModuleService: new MockEventBusService(),
|
||||
[Modules.EVENT_BUS]: new MockEventBusService(),
|
||||
},
|
||||
testSuite: ({ service }) => {
|
||||
it(`should export the appropriate linkable configuration`, () => {
|
||||
@@ -45,7 +45,7 @@ moduleIntegrationTestRunner<IUserModuleService>({
|
||||
linkable: "user_id",
|
||||
entity: "User",
|
||||
primaryKey: "id",
|
||||
serviceName: "user",
|
||||
serviceName: "User",
|
||||
field: "user",
|
||||
},
|
||||
},
|
||||
@@ -54,7 +54,7 @@ moduleIntegrationTestRunner<IUserModuleService>({
|
||||
linkable: "invite_id",
|
||||
entity: "Invite",
|
||||
primaryKey: "id",
|
||||
serviceName: "user",
|
||||
serviceName: "User",
|
||||
field: "invite",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import {
|
||||
Context,
|
||||
DAL,
|
||||
IEventBusModuleService,
|
||||
InternalModuleDeclaration,
|
||||
ModulesSdkTypes,
|
||||
UserTypes,
|
||||
} from "@medusajs/types"
|
||||
import {
|
||||
arrayDifference,
|
||||
CommonEvents,
|
||||
EmitEvents,
|
||||
InjectManager,
|
||||
@@ -16,6 +14,7 @@ import {
|
||||
MedusaError,
|
||||
MedusaService,
|
||||
UserEvents,
|
||||
arrayDifference,
|
||||
} from "@medusajs/utils"
|
||||
import jwt, { JwtPayload } from "jsonwebtoken"
|
||||
import crypto from "node:crypto"
|
||||
@@ -26,7 +25,6 @@ type InjectedDependencies = {
|
||||
baseRepository: DAL.RepositoryService
|
||||
userService: ModulesSdkTypes.IMedusaInternalService<any>
|
||||
inviteService: ModulesSdkTypes.IMedusaInternalService<any>
|
||||
eventBusModuleService: IEventBusModuleService
|
||||
}
|
||||
|
||||
// 1 day
|
||||
|
||||
Reference in New Issue
Block a user