mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add more logging to email sends
This commit is contained in:
parent
b7958fd45e
commit
3b7fc2b801
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