Skip to content

Commit

Permalink
fix(route): correct country_id reference in link generation
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL committed Nov 15, 2024
1 parent bc3151a commit 4c7dc67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/wallstreetcn/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function handler(ctx) {
? response.data.items.map((item) => ({
title: `${item.country}${item.title}`,
description: `${item.country}${item.title} 重要性: ${'★'.repeat(item.importance)} 今值: ${item.actual || '-'}${item.actual && item.unit} 预期: ${item.forecast || '-'}${item.forecast && item.unit} 前值: ${item.revised || item.previous || '-'}${(item.revised || item.previous) && item.unit}`,
link: item.uri && MacrodataSuffix[item.countryId] && getMacrodataUrl(item.country_id, item.wscn_ticker),
link: item.uri && MacrodataSuffix[item.country_id] && getMacrodataUrl(item.country_id, item.wscn_ticker),
guid: item.id,
pubDate: parseDate(item.public_date, 'X'),
category: item.country,
Expand Down

0 comments on commit 4c7dc67

Please sign in to comment.