Split job modules (#5318)
## Context JobsModule is hard to maintain because we provide all the jobs there, including their dependencies. This PR aims to split jobs in dedicated modules.
This commit is contained in:
@ -36,7 +36,7 @@ async function bootstrap() {
|
||||
const jobClassName = getJobClassName(jobData.name);
|
||||
const job: MessageQueueJob<MessageQueueJobData> = app
|
||||
.select(JobsModule)
|
||||
.get(jobClassName, { strict: true });
|
||||
.get(jobClassName, { strict: false });
|
||||
|
||||
try {
|
||||
await job.handle(jobData.data);
|
||||
|
||||
Reference in New Issue
Block a user