File tree Expand file tree Collapse file tree
sample/06-mongoose/src/cats Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616<a href =" https://travis-ci.org/nestjs/nest " ><img src =" https://img.shields.io/travis/nestjs/nest/master.svg?label=linux " alt =" Linux " /></a >
1717<a href =" https://coveralls.io/github/nestjs/nest?branch=master " ><img src =" https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#8 " alt =" Coverage " /></a >
1818<a href =" https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge " ><img src =" https://badges.gitter.im/nestjs/nestjs.svg " alt =" Gitter " /></a >
19- <a href =" https://discord.gg/G7Qnnhy " ><img src =" https://img.shields.io/discord/520622812742811698 .svg?logo=discord " alt =" Discord " /></a >
19+ <a href =" https://discord.gg/G7Qnnhy " ><img src =" https://img.shields.io/badge/discord-online-brightgreen .svg " alt =" Discord " /></a >
2020<a href =" https://opencollective.com/nest#backer " ><img src =" https://opencollective.com/nest/backers/badge.svg " alt =" Backers on Open Collective " /></a >
2121<a href =" https://opencollective.com/nest#sponsor " ><img src =" https://opencollective.com/nest/sponsors/badge.svg " alt =" Sponsors on Open Collective " /></a >
2222 <a href =" https://paypal.me/kamilmysliwiec " ><img src =" https://img.shields.io/badge/Donate-PayPal-ff3f59.svg " /></a >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export class CatsController {
99
1010 @Post ( )
1111 async create ( @Body ( ) createCatDto : CreateCatDto ) {
12- this . catsService . create ( createCatDto ) ;
12+ await this . catsService . create ( createCatDto ) ;
1313 }
1414
1515 @Get ( )
You can’t perform that action at this time.
0 commit comments