Browse Source

fix: add init statement to load plugins to db

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 1 year ago
parent
commit
ad2da4974d
  1. 3
      packages/nocodb-nest/src/app.module.ts

3
packages/nocodb-nest/src/app.module.ts

@ -4,6 +4,7 @@ import { ExtractJwt } from 'passport-jwt';
import { Connection } from './connection/connection';
import { GlobalExceptionFilter } from './filters/global-exception/global-exception.filter';
import { GlobalGuard } from './guards/global/global.guard';
import NcPluginMgrv2 from './helpers/NcPluginMgrv2'
import { GlobalMiddleware } from './middlewares/global/global.middleware';
import { AuthModule } from './modules/auth/auth.module';
import { ExtractProjectIdMiddleware } from './middlewares/extract-project-id/extract-project-id.middleware';
@ -175,6 +176,8 @@ export class AppModule implements OnApplicationBootstrap {
Noco._ncMeta = this.metaService;
Noco.config = this.connection.config;
// init plugin manager
await NcPluginMgrv2.init(Noco.ncMeta);
await Noco.loadEEState();
// run upgrader

Loading…
Cancel
Save