From fcdbb43ac58faa5e0f7aa4f2bd59a81b09cecd0e Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 14 Apr 2023 15:50:20 +0530 Subject: [PATCH] fix: define NC_VERSION Signed-off-by: Pranav C --- packages/nocodb-nest/src/Noco.ts | 2 -- packages/nocodb-nest/src/app.module.ts | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb-nest/src/Noco.ts b/packages/nocodb-nest/src/Noco.ts index ca5e2be7aa..a86f260f9a 100644 --- a/packages/nocodb-nest/src/Noco.ts +++ b/packages/nocodb-nest/src/Noco.ts @@ -44,8 +44,6 @@ export default class Noco { constructor() { process.env.PORT = process.env.PORT || '8080'; // todo: move - process.env.NC_VERSION = '0105004'; - // if env variable NC_MINIMAL_DBS is set, then disable project creation with external sources if (process.env.NC_MINIMAL_DBS) { process.env.NC_CONNECT_TO_EXTERNAL_DB_DISABLED = 'true'; diff --git a/packages/nocodb-nest/src/app.module.ts b/packages/nocodb-nest/src/app.module.ts index 8edf6cb153..3ea658ba7a 100644 --- a/packages/nocodb-nest/src/app.module.ts +++ b/packages/nocodb-nest/src/app.module.ts @@ -144,6 +144,8 @@ export class AppModule implements OnApplicationBootstrap { // app init async onApplicationBootstrap(): Promise { + process.env.NC_VERSION = '0105004'; + await this.connection.init(); await this.metaService.init();