Skip to content

Commit

Permalink
chore: switch redirect to json message
Browse files Browse the repository at this point in the history
  • Loading branch information
KenLSM committed Sep 20, 2023
1 parent 6913184 commit e0214db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/modules/payments/stripe.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit e0214db

Please sign in to comment.