Merge pull request #1863 from omnivore-app/fix/gmail-confirmation

Forward Gmail verification email to the user
This commit is contained in:
Hongbo Wu
2023-03-07 19:24:39 +08:00
committed by GitHub

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)