From 0eeb41a9f55c3196d3ff7d7c81ef63b9d00ad690 Mon Sep 17 00:00:00 2001 From: richard483 Date: Wed, 24 Jan 2024 01:19:38 +0700 Subject: [PATCH] updated some contract controller --- package-lock.json | 4 ++-- package.json | 2 +- src/contract/contract.controller.ts | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 54ab976..0692d86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "backend-8tech", - "version": "4.2.1", + "version": "4.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "backend-8tech", - "version": "4.2.1", + "version": "4.2.2", "license": "UNLICENSED", "dependencies": { "@nestjs/common": "^9.4.3", diff --git a/package.json b/package.json index 40767d6..02dc094 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backend-8tech", - "version": "4.2.1", + "version": "4.2.2", "description": "", "author": "8tech", "private": true, diff --git a/src/contract/contract.controller.ts b/src/contract/contract.controller.ts index a4f3d5f..a3426ce 100644 --- a/src/contract/contract.controller.ts +++ b/src/contract/contract.controller.ts @@ -143,8 +143,6 @@ export class ContractController { @ApiBearerAuth() @ApiParam({ name: 'contractId', type: String }) - @Roles(Role.USER) - @UseGuards(JwtAuthGuard, RoleGuard) @Get('payment-success/:contractId') @Redirect() async updateSuccessPaymentRequest(@Res() res, @Param() params: any) { @@ -153,7 +151,7 @@ export class ContractController { params, ); await this.contractService.updatePaymentStatusSuccess(params.contractId); - res.redirect('https://www.youtube.com/watch?v=46cuX1IeVpU'); + res.redirect('https://8tech.vercel.app/'); } @ApiBearerAuth()