Browse Source

fix: avoid providing gateways for worker

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5711/head
mertmit 2 years ago
parent
commit
a0822d3c55
  1. 4
      packages/nocodb/src/modules/global/global.module.ts
  2. 2
      packages/nocodb/src/modules/jobs/jobs.module.ts

4
packages/nocodb/src/modules/global/global.module.ts

@ -47,7 +47,7 @@ export const JwtStrategyProvider: Provider = {
UsersService, UsersService,
JwtStrategyProvider, JwtStrategyProvider,
GlobalGuard, GlobalGuard,
SocketGateway, ...(!process.env['NC_WORKER_CONTAINER'] ? [SocketGateway] : []),
], ],
exports: [ exports: [
AppInitService, AppInitService,
@ -56,7 +56,7 @@ export const JwtStrategyProvider: Provider = {
JwtStrategyProvider, JwtStrategyProvider,
UsersService, UsersService,
GlobalGuard, GlobalGuard,
SocketGateway, ...(!process.env['NC_WORKER_CONTAINER'] ? [SocketGateway] : []),
], ],
}) })
export class GlobalModule {} export class GlobalModule {}

2
packages/nocodb/src/modules/jobs/jobs.module.ts

@ -30,8 +30,8 @@ import { AtImportProcessor } from './at-import/at-import.processor';
: []), : []),
], ],
providers: [ providers: [
...(!process.env['NC_WORKER_CONTAINER'] ? [JobsGateway] : []),
QueueService, QueueService,
JobsGateway,
JobsService, JobsService,
JobsEventService, JobsEventService,
ExportService, ExportService,

Loading…
Cancel
Save