Skip to content

Commit

Permalink
fix(route/sorrycc): add pubDate (#17277)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarasuShin authored Oct 24, 2024
1 parent 32bebca commit b8a46a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/routes/sorrycc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function handler(ctx: Context): Promise<Data> {
data.map(async (item) => {
const title = item.title.rendered;
const link = item.link;
const published = parseDate(item.date_gmt);
const pubDate = parseDate(item.date_gmt);
const updated = parseDate(item.modified_gmt);
if (item.categories.includes(7) && cookie) {
return (await cache.tryGet(link, async () => {
Expand All @@ -61,7 +61,7 @@ async function handler(ctx: Context): Promise<Data> {
title,
description,
link,
published,
pubDate,
updated,
};
})) as unknown as DataItem;
Expand All @@ -70,7 +70,7 @@ async function handler(ctx: Context): Promise<Data> {
title,
description: item.content.rendered,
link,
published,
pubDate,
updated,
} as DataItem;
})
Expand Down

0 comments on commit b8a46a1

Please sign in to comment.