Skip to content

Commit

Permalink
chore: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
KenLSM committed Sep 20, 2023
1 parent f9242f0 commit 6913184
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/modules/payments/stripe.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ export const downloadPaymentInvoice: ControllerHandler<{
return StripeService.generatePaymentInvoiceUrl(payment, populatedForm)
})
.map((pdfUrl) => {
logger.info({
message: `received generated payment invoice url, redirecting to ${pdfUrl}`,
meta: {
action: 'downloadPaymentInvoice',
formId,
paymentId,
},
})
return res.redirect(pdfUrl)
})
.mapErr((error) => {
Expand Down
1 change: 1 addition & 0 deletions src/app/modules/payments/stripe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ const _storePaymentProofInS3 = (
action: '_storePaymentProofInS3',
paymentId: payment._id,
objectPath,
bucket: AwsConfig.paymentProofS3Bucket,
},
})

Expand Down

0 comments on commit 6913184

Please sign in to comment.