From 032de3b6ea443c3144ac2ffc86d9f5d489f4a66a Mon Sep 17 00:00:00 2001 From: kyeah Date: Sat, 7 Sep 2024 23:55:10 -0600 Subject: [PATCH] feat: check point body --- src/domain/point/point.controller.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/domain/point/point.controller.ts b/src/domain/point/point.controller.ts index 67a691e..9ae8018 100644 --- a/src/domain/point/point.controller.ts +++ b/src/domain/point/point.controller.ts @@ -21,8 +21,11 @@ export class PointController { @UseGuards(AccessGuard) @Get('/check') @Docs('checkPoint') - async checkPoint(@User() user: JwtPayload): Promise { - return await this.pointService.checkResPoint(user.id, 40); + async checkPoint( + @User() user: JwtPayload, + @Body() info: { point: number }, + ): Promise { + return await this.pointService.checkResPoint(user.id, info.point); } @UseGuards(AccessGuard)