Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
LeafYeeXYZ committed Aug 1, 2024
1 parent 9eb1b49 commit 240bf4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/receive/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export async function POST(req: Request): Promise<Response> {
const { from, to, mail }: { from: string, to: string, mail: string } = await req.json()
const data = await PostalMime.parse(mail)
// 将邮件数据插入到收件箱
await inbox.insertOne({ ...data })
await inbox.insertOne({ ...data, workers: { from, to } })
return new Response('OK')
}

0 comments on commit 240bf4d

Please sign in to comment.