fix: the email vaerification logic error
This commit is contained in:
Regular → Executable
+1
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user