From cc044ac53380f8c7ba210398577319d86307561a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 28 Apr 2024 23:59:06 +0000 Subject: [PATCH] style: auto format --- lib/routes/chub/characters.ts | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/lib/routes/chub/characters.ts b/lib/routes/chub/characters.ts index bf9732eff..0f3435065 100644 --- a/lib/routes/chub/characters.ts +++ b/lib/routes/chub/characters.ts @@ -11,7 +11,6 @@ export const route: Route = { handler, }; - async function handler() { const hostURL = 'https://www.chub.ai/characters'; const apiURL = 'https://api.chub.ai/api/characters/search'; @@ -50,19 +49,16 @@ async function handler() { allowEmpty: true, title: 'Chub', link: hostURL, - item: nodes - .map((item) => ({ - title: item.name, - description: `${item.tagline}

${item.description}`, - pubDate: parseDate(item.createdAt), - updated: parseDate(item.lastActivityAt), - link: `${hostURL}/${item.fullPath}`, - author: String(item.fullPath.split('/', 1)), - enclosure_url: item.avatar_url, - enclosure_type: `image/webp`, - category: item.topics, - })), + item: nodes.map((item) => ({ + title: item.name, + description: `${item.tagline}

${item.description}`, + pubDate: parseDate(item.createdAt), + updated: parseDate(item.lastActivityAt), + link: `${hostURL}/${item.fullPath}`, + author: String(item.fullPath.split('/', 1)), + enclosure_url: item.avatar_url, + enclosure_type: `image/webp`, + category: item.topics, + })), }; } - -