diff --git a/packages/nocodb/src/modules/jobs/jobs.module.ts b/packages/nocodb/src/modules/jobs/jobs.module.ts index c88d26b102..c82639d7eb 100644 --- a/packages/nocodb/src/modules/jobs/jobs.module.ts +++ b/packages/nocodb/src/modules/jobs/jobs.module.ts @@ -1,4 +1,4 @@ -import { Module } from '@nestjs/common'; +import { forwardRef, Module } from '@nestjs/common'; import { BullModule } from '@nestjs/bull'; // Jobs @@ -34,7 +34,7 @@ import { GlobalModule } from '~/modules/global/global.module'; @Module({ imports: [ - GlobalModule, + forwardRef(() => GlobalModule), DatasModule, MetasModule, ...(process.env.NC_REDIS_JOB_URL @@ -80,5 +80,6 @@ import { GlobalModule } from '~/modules/global/global.module'; SourceCreateProcessor, SourceDeleteProcessor, ], + exports: ['JobsService'], }) export class JobsModule {}