Update comment

This commit is contained in:
Hongbo Wu
2023-04-14 18:50:31 +08:00
parent 0a2598e296
commit 182860e4d3

View File

@ -134,7 +134,7 @@ export const inboundEmailHandler = Sentry.GCPFunction.wrapHttpFunction(
})
try {
// check if it is a subscription google confirmation email
// check if it is a subscription or google confirmation email
const isGoogleConfirmation = isGoogleConfirmationEmail(from, subject)
if (isGoogleConfirmation || isSubscriptionConfirmationEmail(subject)) {
console.debug('handleConfirmation', from, subject)
@ -159,6 +159,7 @@ export const inboundEmailHandler = Sentry.GCPFunction.wrapHttpFunction(
}
if (pdfAttachment) {
console.log('handle PDF attachment', from, to)
// save the pdf attachment as an article
await handlePdfAttachment(
to,
pdfAttachmentName,