(@Param('id') id: string)
| 120 | |
| 121 | @Delete('post/:id') |
| 122 | async deletePost(@Param('id') id: string): Promise<PostModel> { |
| 123 | return this.prismaService |
| 124 | .extendedPrismaClient() |
| 125 | .post.delete({ where: { id: Number(id) } }); |
| 126 | } |
| 127 | |
| 128 | @Put('/post/:id/views') |
| 129 | async incrementPostViewCount(@Param('id') id: string): Promise<PostModel> { |
no test coverage detected