fix: the email vaerification logic error

This commit is contained in:
mahyargdz
2025-02-26 15:25:18 +03:30
parent f8a1a7b784
commit 93c5ad49d3
320 changed files with 215 additions and 92 deletions
+1 -2
View File
@@ -129,7 +129,7 @@ export class PaymentsService {
//*********************************** */
async verifyPayment(gateway: GatewayType, queryDto: VerifyQueryDto, rep: FastifyReply) {
const frontUrl = new URL(this.configService.getOrThrow<string>("SITE_URL"));
frontUrl.pathname = "/transactions";
frontUrl.pathname = "/payment";
const queryRunner = this.dataSource.createQueryRunner();
await queryRunner.connect();
@@ -180,7 +180,6 @@ export class PaymentsService {
frontUrl.searchParams.append("amount", payment.amount.toString());
}
console.log(frontUrl.toString());
return rep.status(HttpStatus.FOUND).redirect(frontUrl.toString());
} catch (error) {
await queryRunner.rollbackTransaction();