fix: sending empty report

This commit is contained in:
poeti8 2019-10-28 20:08:10 +03:30
parent 684d833a31
commit 206f31a0c2
1 changed files with 2 additions and 2 deletions

View File

@ -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