Forward Gmail verification email to the user

This commit is contained in:
Hongbo Wu
2023-03-07 18:50:08 +08:00
parent 1b9909721b
commit 017c8f5f8a

View File

@ -141,7 +141,6 @@ export const inboundEmailHandler = Sentry.GCPFunction.wrapHttpFunction(
if (isConfirmationEmail(from, subject)) {
console.log('handleConfirmation', from)
await handleConfirmation(to, subject)
return res.send('ok')
}
if (pdfAttachment) {
@ -187,6 +186,7 @@ export const inboundEmailHandler = Sentry.GCPFunction.wrapHttpFunction(
receivedEmailId,
},
})
res.send('ok')
}
} catch (e) {
console.log(e)