Skip to content

Commit 3c48638

Browse files
Update pipes.md
1 parent 2fea673 commit 3c48638

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/pipes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,11 @@ We leave the implementation of this pipe to the reader, but note that like all o
451451
```typescript
452452
@@filename()
453453
@Get()
454-
async findMany(
455-
@Query('activeOnly', new DefaultValuePipe(false), new ParseBoolPipe()) activeOnly: boolean,
456-
@Query('page', new DefaultValuePipe(0), new ParseIntPipe()) page: number,
454+
async findAll(
455+
@Query('activeOnly', new DefaultValuePipe(false), ParseBoolPipe) activeOnly: boolean,
456+
@Query('page', new DefaultValuePipe(0), ParseIntPipe) page: number,
457457
) {
458-
return this.catsService.find({ activeOnly, page });
458+
return this.catsService.findAll({ activeOnly, page });
459459
}
460460
```
461461

0 commit comments

Comments
 (0)