fix: new received emails not showing

This commit is contained in:
beilunyang
2025-06-23 00:37:12 +08:00
parent f4f93d9b52
commit 8ec1ecdbb4
2 changed files with 8 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ const handleEmail = async (message: ForwardableEmailMessage, env: Env) => {
subject: parsedMessage.subject || '(无主题)',
content: parsedMessage.text || '',
html: parsedMessage.html || '',
type: 'received',
}).returning().get()
const webhook = await db.query.webhooks.findFirst({