Merge pull request #1733 from omnivore-app/fix/recent-email-logging

Add more logging for recent email lookups
This commit is contained in:
Jackson Harper 2023-01-28 15:22:50 +08:00 committed by GitHub
commit d535b65a4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,7 +90,11 @@ export const markEmailAsItemResolver = authorized<
relations: ['user'],
})
if (!newsletterEmail) {
log.info('no newsletter email', recentEmail.to)
log.info('no newsletter email for', {
id: recentEmail.id,
to: recentEmail.to,
from: recentEmail.from,
})
return {
errorCodes: [MarkEmailAsItemErrorCode.NotFound],