Skip to content

Commit

Permalink
fix(hackernews): multiply acquired time by 1000 to make it as millise…
Browse files Browse the repository at this point in the history
…cond
  • Loading branch information
aldy505 committed Nov 13, 2023
1 parent 809ac2e commit be20f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/hackernews/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function run(context) {
// It's useless if it's dead.
if (item?.dead) continue;
// We don't want old stories to come up. Limit this to last 24 hours.
if (item?.time && item.time < last24Hours.getTime()) continue;
if (item?.time && (item.time * 1000) < last24Hours.getTime()) continue;

resultingStories.push(item);
}
Expand Down

0 comments on commit be20f63

Please sign in to comment.