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,
JwtStrategyProvider,
GlobalGuard,
SocketGateway,
...(!process.env['NC_WORKER_CONTAINER'] ? [SocketGateway] : []),
],
exports: [
AppInitService,
@ -56,7 +56,7 @@ export const JwtStrategyProvider: Provider = {
JwtStrategyProvider,
UsersService,
GlobalGuard,
SocketGateway,
...(!process.env['NC_WORKER_CONTAINER'] ? [SocketGateway] : []),
],
})
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: [
...(!process.env['NC_WORKER_CONTAINER'] ? [JobsGateway] : []),
QueueService,
JobsGateway,
JobsService,
JobsEventService,
ExportService,

Loading…
Cancel
Save