Skip to content

Commit c582bee

Browse files
fix: argument-host remove unuse provider
1 parent 45de2e3 commit c582bee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

argument-host/src/app.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Controller, Get, Request, SetMetadata, UseFilters, UseGuards } from '@nestjs/common';
1+
import { Controller, Get, Req, SetMetadata, UseFilters, UseGuards } from '@nestjs/common';
22
import { AppService } from './app.service';
33
import { AaaException } from './AaaException';
44
import { AaaFilter } from './aaa.filter';
@@ -13,7 +13,7 @@ export class AppController {
1313

1414
@Get()
1515
@SetMetadata('aaa', 'bbb')
16-
getHello(@Request() req: Request): string {
16+
getHello(@Req() req: Request): string {
1717
return this.appService.getHello();
1818
}
1919
}

argument-host/src/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import { AppService } from './app.service';
66
@Module({
77
imports: [],
88
controllers: [AppController],
9-
providers: [AppService, AaaGuard],
9+
providers: [AppService],
1010
})
1111
export class AppModule {}

0 commit comments

Comments
 (0)