debug
This commit is contained in:
@@ -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
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user