fix: populate missing showId on latest episodes

This commit is contained in:
Hossein Mehrabi 2023-08-29 18:48:00 +03:30
parent dc3ed4b02c
commit 2d5cb87e99
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ export const getStaticProps = async ({ params }: GetStaticPropsContext) => {
const { data: latestEpisodes } = await unbodyApi.getPodcastEpisodes({
limit: 10,
populateShow: false,
populateShow: true,
highlighted: 'exclude',
})
@ -65,8 +65,8 @@ export const getStaticProps = async ({ params }: GetStaticPropsContext) => {
return {
props: {
shows: podcastShows,
latestEpisodes,
highlightedEpisodes,
latestEpisodes: latestEpisodes.map((ep) => ({ ...ep, show: null })),
// errors,
},
}