Skip to content

Commit 48fabb5

Browse files
committed
fix: 示例代码和官网保持一致
1 parent 4215263 commit 48fabb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

9/customdecorators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async findOne(@User('firstName') firstName: string) {
9999

100100
```typescript
101101
@Get()
102-
async findOne(@User(new ValidationPipe()) user: UserEntity) {
102+
async findOne(@User(new ValidationPipe({ validateCustomDecorators: true })) user: UserEntity) {
103103
console.log(user);
104104
}
105105
```

0 commit comments

Comments
 (0)