mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Save the parsed email address as the to field in received_emails
The unparsed addresses can look something like this: "jacksonh-XXXX@inbox.omnivore.app" <jacksonh-XXXX@inbox-demo.omnivore.app> but we want to join on this field to the NewsletterEmail.address field which will look like `jacksonh-XXXX@inbox.omnivore.app`
This commit is contained in:
parent
d47b8c5024
commit
6a50e85759
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ export function emailsServiceRouter() {
|
|||
const user = newsletterEmail.user
|
||||
const receivedEmail = await saveReceivedEmail(
|
||||
req.body.from,
|
||||
req.body.to,
|
||||
newsletterEmail.address,
|
||||
req.body.subject,
|
||||
req.body.text,
|
||||
req.body.html,
|
||||
|
|
|
|||
Loading…
Reference in a new issue