mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-07 15:21:33 +08:00
feat: use pnpm
This commit is contained in:
@@ -17,8 +17,8 @@ async function email(message, env, ctx) {
|
||||
const parsedEmail = await parser.parse(rawEmail);
|
||||
|
||||
const { success } = await env.DB.prepare(
|
||||
`INSERT INTO mails (source, address, message) VALUES (?, ?, ?)`
|
||||
).bind(message.from, message.to, parsedEmail.html).run();
|
||||
`INSERT INTO mails (source, address, subject, message) VALUES (?, ?, ?, ?)`
|
||||
).bind(message.from, message.to, parsedEmail.subject || "", parsedEmail.html).run();
|
||||
if (!success) {
|
||||
message.setReject(`Failed save message to ${message.to}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user