feat(onboarding): added migration script for super admin

This commit is contained in:
Akhil Mohan
2023-11-13 23:53:55 +05:30
parent c3ca992777
commit 4ac3669756
4 changed files with 187 additions and 87 deletions
+4 -1
View File
@@ -82,6 +82,7 @@ import { healthCheck } from "./routes/status";
import { RouteNotFoundError } from "./utils/errors";
import { requestErrorHandler } from "./middleware/requestErrorHandler";
import {
getMongoURL,
getNodeEnv,
getPort,
getSecretScanningGitAppId,
@@ -102,8 +103,10 @@ let handler: null | any = null;
const main = async () => {
const port = await getPort();
await setup();
// initializing the database connection
await DatabaseService.initDatabase(await getMongoURL());
const serverCfg = await serverConfigInit();
await setup();
await EELicenseService.initGlobalFeatureSet();