瀏覽代碼

fix: sending empty report

poeti8 6 年之前
父節點
當前提交
206f31a0c2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/controllers/linkController.ts

+ 2 - 2
server/controllers/linkController.ts

@@ -376,8 +376,8 @@ export const reportLink: Handler = async (req, res) => {
     from: process.env.MAIL_USER,
     to: process.env.REPORT_MAIL,
     subject: "[REPORT]",
-    text: req.body.url,
-    html: req.body.url
+    text: req.body.link,
+    html: req.body.link
   });
   if (mail.accepted.length) {
     return res