hotfix(medusa): Assign jobSchedulerService in EventBus (#2889)

Solves #2886
This commit is contained in:
Oliver Windall Juhl
2022-12-22 21:16:31 +01:00
committed by GitHub
parent 365d11aca7
commit d843bc1023
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
Assign jobSchedulerService in EventBusService

View File

@@ -52,6 +52,7 @@ export default class EventBusService {
stagedJobRepository,
redisClient,
redisSubscriber,
jobSchedulerService,
}: InjectedDependencies,
config: ConfigModule,
singleton = true
@@ -59,6 +60,7 @@ export default class EventBusService {
this.config_ = config
this.manager_ = manager
this.logger_ = logger
this.jobSchedulerService_ = jobSchedulerService
this.stagedJobRepository_ = stagedJobRepository
if (singleton) {