File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as cookieParser from 'cookie-parser';
44import { AppModule } from './app/app.module' ;
55import { ConfigServiceProvider } from './services/config/config.service' ;
66import { serve , setup } from 'swagger-ui-express' ;
7- import { load } from 'yamljs' ;
7+ import * as Yaml from 'yamljs' ;
88import { DatabaseServiceProvider } from './services/database/database.service' ;
99import { ENVIRONMENT } from './services/config/config.model' ;
1010import { INestApplication } from '@nestjs/common' ;
@@ -79,7 +79,7 @@ async function bootstrap() {
7979
8080 const ENV = configService . ENVIRONMENT ;
8181 if ( ENV === ENVIRONMENT . STAGE || ENV === ENVIRONMENT . LOCAL ) {
82- const swaggerDoc = load ( 'src/swagger.yaml' ) ;
82+ const swaggerDoc = Yaml . load ( 'src/swagger.yaml' ) ;
8383 app . use (
8484 '/swagger' ,
8585 serve ,
You can’t perform that action at this time.
0 commit comments