Skip to content

Commit

Permalink
Fix publishTime calculation in getBatch function (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
skacula authored Mar 22, 2024
1 parent 02ab9dc commit 6aef43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/[indexType]_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const getBatch = async (url: string) => {
if (!episode) {
continue;
}
const publishTime = (new Date(episode.published_at).getTime())/1000;
const publishTime = new Date(episode.published_at).getTime();
const imageMain = await createImageMain(episode);
episodes.push({
objectID: episode.id,
Expand Down

0 comments on commit 6aef43f

Please sign in to comment.