mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #4482 from omnivore-app/jacksonh/email-logging
Add more logging to email sends
This commit is contained in:
commit
11144ffc66
2 changed files with 7 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ export type SendEmailJobData = Merge<
|
|||
>
|
||||
|
||||
export const sendEmailJob = async (data: SendEmailJobData) => {
|
||||
logger.info('sending email job:', { data })
|
||||
if (!data.to) {
|
||||
const user = await findActiveUser(data.userId)
|
||||
if (!user) {
|
||||
|
|
|
|||
|
|
@ -144,6 +144,12 @@ export const sendExportJobEmail = async (
|
|||
throw new Error('Invalid state')
|
||||
}
|
||||
|
||||
logger.info('enqueing email job:', {
|
||||
userId,
|
||||
subject,
|
||||
html,
|
||||
})
|
||||
|
||||
return enqueueSendEmail({
|
||||
userId,
|
||||
subject,
|
||||
|
|
|
|||
Loading…
Reference in a new issue