Add more logging for recent email lookups

This commit is contained in:
Jackson Harper 2023-01-28 15:05:45 +08:00
parent b4122db127
commit 7476878254

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],