Skip to content

Commit

Permalink
Merge pull request #167 from datacamp/fix/last-published-date
Browse files Browse the repository at this point in the history
[OGE-1827] feat: last published date
  • Loading branch information
louiejakebell authored Sep 16, 2024
2 parents 3bea489 + 9cbf3d3 commit 9cad8fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/packages/[package]/versions/[version].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ export const getServerSideProps: GetServerSideProps = async ({
pageTitle,
readmemd,
release_date,
sourceJSON: { 'Date/Publication': datePublication },
title,
topics,
updated_at,
uri,
version: metadataVersion,
} = metadata;
Expand All @@ -251,7 +253,7 @@ export const getServerSideProps: GetServerSideProps = async ({
package_name,
pageTitle,
readmemd,
release_date,
release_date: datePublication ? release_date : updated_at,
title,
topics: topics.map((topic) => ({
id: topic.id,
Expand Down

0 comments on commit 9cad8fc

Please sign in to comment.