Skip to content

Commit

Permalink
camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
zhullyb committed Nov 1, 2024
1 parent ebdae3f commit e2b173c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/routes/zjut/www/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ async function handler(ctx) {
} else if (!link.startsWith('http')) {
link = rootUrl.slice(0, -1) + link;
}
const date_text = cheerioItem.find('.news_meta').text();
if (!date_text) {
const dateText = cheerioItem.find('.news_meta').text();
if (!dateText) {
// This should not be included, return an empty item to filter out
return {
title: '',
link: '',
pubDate: Date.now(),
};
}
const pubDate = timezone(parseDate(date_text), +8);
const pubDate = timezone(parseDate(dateText), +8);

return {
title,
Expand Down

0 comments on commit e2b173c

Please sign in to comment.