Skip to content

Commit 7844666

Browse files
committed
feat: fix run nestjs
1 parent 007e447 commit 7844666

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/app.module.ts

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ import { EventsGateway } from './eventGateway';
6161
UserBlockModule,
6262
UserReportModule,
6363
AuthModule,
64+
65+
ConfigModule.forRoot({
66+
isGlobal: true,
67+
}),
6468
],
6569
controllers: [AppController],
6670
providers: [AppService, EventsGateway],

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NestFactory } from '@nestjs/core';
22
import { AppModule } from './app.module';
33
import { setupSwagger } from './utils/swagger';
4-
import { ServiceExceptionToHttpExceptionFilter } from './common/exception-filter/service.exception.to.http.exception.filter';
4+
import { ServiceExceptionToHttpExceptionFilter } from './common/exception-filter';
55
import { ValidationPipe } from '@nestjs/common';
66
import { IoAdapter } from '@nestjs/platform-socket.io';
77

0 commit comments

Comments
 (0)