Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 28, 2024
1 parent d4a88c7 commit cc044ac
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions lib/routes/chub/characters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -50,19 +49,16 @@ async function handler() {
allowEmpty: true,
title: 'Chub',
link: hostURL,
item: nodes
.map((item) => ({
title: item.name,
description: `${item.tagline}<br><br>${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}<br><br>${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,
})),
};
}


0 comments on commit cc044ac

Please sign in to comment.