feat: filter out unnecessary items (zaker & futunn) (#6387)

This commit is contained in:
Jankin Wei
2020-12-09 22:21:35 +00:00
committed by GitHub
parent 36ca01429c
commit 59efe27e14
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -46,10 +46,11 @@ module.exports = async (ctx) => {
return Promise.resolve(single);
})
);
const outfilter = out.filter((t) => t.description !== '原文已被删除');
ctx.state.data = {
title: `富途牛牛要闻`,
link: link,
item: out,
item: outfilter,
};
};
+2 -1
View File
@@ -54,10 +54,11 @@ module.exports = async (ctx) => {
return Promise.resolve(single);
})
);
const outfilter = out.filter((t) => t.description !== '原文已被删除');
ctx.state.data = {
title: `${title}-ZAKER精读新闻`,
link: link,
item: out,
item: outfilter,
};
};