From d863993e203d9bd6a8bf4c6ab7f8e18d2d1a64c8 Mon Sep 17 00:00:00 2001 From: rainrdx Date: Mon, 19 Sep 2022 17:14:52 -0500 Subject: [PATCH] fix(route): fix nikkei-asia (#10835) * fix nikkei-asia * style: auto format Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/v2/nikkei-asia/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/nikkei-asia/index.js b/lib/v2/nikkei-asia/index.js index b8e9e4131..6eac5b3f0 100644 --- a/lib/v2/nikkei-asia/index.js +++ b/lib/v2/nikkei-asia/index.js @@ -10,7 +10,7 @@ module.exports = async (ctx) => { url: currentUrl, }); - const stories = response.data.stories; + const stories = response.data.stories.filter((story) => story.type === 'article'); const items = await Promise.all( stories.map((item) =>