|
|
@@ -1,6 +1,8 @@
|
|
|
import { Configuration, Inject, InjectorService } from '@tsed/di';
|
|
|
import { PlatformApplication } from '@tsed/common';
|
|
|
-import '@tsed/platform-express'; // /!\ keep this import
|
|
|
+import '@tsed/platform-express'; // !! DO NOT MODIFY !!
|
|
|
+import '@tsed/typeorm'; // !! DO NOT MODIFY !! -- https://github.com/tsedio/tsed/issues/1332#issuecomment-837840612
|
|
|
+import '@tsed/swagger';
|
|
|
|
|
|
import bodyParser from 'body-parser';
|
|
|
import compress from 'compression';
|
|
|
@@ -8,9 +10,6 @@ import cookieParser from 'cookie-parser';
|
|
|
import methodOverride from 'method-override';
|
|
|
import helmet from 'helmet';
|
|
|
|
|
|
-import '@tsed/swagger';
|
|
|
-import { TypeORMService } from '@tsed/typeorm';
|
|
|
-
|
|
|
import { ConnectionOptions } from 'typeorm';
|
|
|
|
|
|
import swaggerSettingsForDev from '~/config/swagger/config.dev';
|
|
|
@@ -111,9 +110,4 @@ export class Server {
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
- async $onReady(): Promise<void> {
|
|
|
- // for synchromizing when boot
|
|
|
- this.injector.get<TypeORMService>(TypeORMService);
|
|
|
- }
|
|
|
-
|
|
|
}
|