|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import { T } from 'nc-help'; |
|
|
|
|
import type { Provider } from '@nestjs/common'; |
|
|
|
|
import type { FactoryProvider } from '@nestjs/common'; |
|
|
|
|
import type { IEventEmitter } from '~/modules/event-emitter/event-emitter.interface'; |
|
|
|
|
import { populatePluginsForCloud } from '~/utils/cloud/populateCloudPlugins'; |
|
|
|
|
import { MetaService } from '~/meta/meta.service'; |
|
|
|
@ -12,7 +12,7 @@ import initAdminFromEnv from '~/helpers/initAdminFromEnv';
|
|
|
|
|
import { User } from '~/models'; |
|
|
|
|
import { NcConfig, prepareEnv } from '~/utils/nc-config'; |
|
|
|
|
|
|
|
|
|
export const InitMetaServiceProvider: Provider = { |
|
|
|
|
export const InitMetaServiceProvider: FactoryProvider = { |
|
|
|
|
// initialize app,
|
|
|
|
|
// 1. init cache
|
|
|
|
|
// 2. init db connection and create if not exist
|
|
|
|
|