This commit is contained in:
oiov
2025-03-29 21:18:05 +08:00
parent 6a9769f4c8
commit 65b31dcb7c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -12,6 +12,7 @@ export async function POST(req: Request) {
return Response.json({ msg: "success" });
} catch (error) {
console.log(error);
return Response.json({ statusText: "Server error" }, { status: 500 });
}
}
+1 -1
View File
@@ -42,7 +42,7 @@ export async function createEmail(emailData: OriginalEmail) {
messageId: emailData.messageId,
replyTo: emailData.replyTo,
cc: emailData.cc,
headers: emailData.headers,
headers: "",
attachments: JSON.stringify(emailData.attachments), // 转换为 JSON 字符串
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),