Skip to content

Commit

Permalink
Merge pull request #70 from richard483/fix-1
Browse files Browse the repository at this point in the history
updated some contract controller
  • Loading branch information
richard483 authored Jan 23, 2024
2 parents f0ebe1e + 0eeb41a commit cd4f798
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backend-8tech",
"version": "4.2.1",
"version": "4.2.2",
"description": "",
"author": "8tech",
"private": true,
Expand Down
4 changes: 1 addition & 3 deletions src/contract/contract.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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()
Expand Down

0 comments on commit cd4f798

Please sign in to comment.