Browse Source

refactor: run upgrader before running plugin init

pull/9894/head
Pranav C 1 month ago
parent
commit
0dd2702387
  1. 10
      packages/nocodb/src/providers/init-meta-service.provider.ts

10
packages/nocodb/src/providers/init-meta-service.provider.ts

@ -98,17 +98,17 @@ export const InitMetaServiceProvider: FactoryProvider = {
// load super admin user from env if env is set
await initAdminFromEnv(metaService);
await Noco.loadEEState();
// run upgrader
await NcUpgrader.upgrade({ ncMeta: Noco._ncMeta });
// init plugin manager
await NcPluginMgrv2.init(Noco.ncMeta);
await Noco.loadEEState();
if (process.env.NC_CLOUD === 'true') {
await populatePluginsForCloud({ ncMeta: Noco.ncMeta });
}
// run upgrader
await NcUpgrader.upgrade({ ncMeta: Noco._ncMeta });
T.init({
instance: getInstance,
});

Loading…
Cancel
Save