fix(juejin/collections): filter out falsy values (#18472)

This commit is contained in:
Tony
2025-02-28 10:08:23 +08:00
committed by GitHub
parent 7f0b9d6df7
commit 16494c0500
+1 -1
View File
@@ -42,7 +42,7 @@ async function handler(ctx) {
const collectionId = response.data.map((item) => item.tag_id);
const temp = (await Promise.all(collectionId.map((id) => getArticleList(id)))) as Article[][];
const posts = temp.flat();
const posts = temp.flat().filter(Boolean);
const list = parseList(posts);
const result = await ProcessFeed(list);