From e0214db42b293d838d42637bf61a43e317ee503d Mon Sep 17 00:00:00 2001 From: Ken Date: Wed, 20 Sep 2023 16:55:07 +0800 Subject: [PATCH] chore: switch redirect to json message --- src/app/modules/payments/stripe.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/modules/payments/stripe.controller.ts b/src/app/modules/payments/stripe.controller.ts index 4ac56825d9..b8e2c919ba 100644 --- a/src/app/modules/payments/stripe.controller.ts +++ b/src/app/modules/payments/stripe.controller.ts @@ -123,7 +123,8 @@ export const downloadPaymentInvoice: ControllerHandler<{ paymentId, }, }) - return res.redirect(pdfUrl) + return res.status(StatusCodes.OK).json({ message: pdfUrl }) + // return res.redirect(pdfUrl) }) .mapErr((error) => { logger.error({