Skip to content

Commit

Permalink
fix(route): 日期直接从dates对象中获取 (DIYgod#16761)
Browse files Browse the repository at this point in the history
  • Loading branch information
jichangee authored Sep 15, 2024
1 parent be3ba61 commit 837aa7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes/abc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ async function handler(ctx) {
}),
author: i.newsBylineProps?.authors?.map((a) => a.name).join('/') ?? undefined,
guid: `abc-${i.id}`,
pubDate: parseDate(i.timestamp.dates.firstPublished),
updated: i.timestamp.dates.lastUpdated ? parseDate(i.timestamp.dates.lastUpdated) : undefined,
pubDate: parseDate(i.dates.firstPublished),
updated: i.dates.lastUpdated ? parseDate(i.dates.lastUpdated) : undefined,
};

if (i.mediaIndicator) {
Expand Down

0 comments on commit 837aa7b

Please sign in to comment.