Skip to content

Commit

Permalink
⏪️ Revert refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Nov 25, 2022
1 parent 6c78c25 commit a1e96d7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 10 additions & 2 deletions web/lib/queries/common/pageContentFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,22 @@ const pageContentFields = /* groq */ `
reference->_type == 'route_' + $lang => {
"title": reference->content->title,
"hero": content->{heroFields},
"heroImage": reference->content->heroFigure,
"openGraphImage": reference->content->openGraphImage,
"heroVideo": reference->content->heroVideo.asset->{
playbackId,
},
"heroType": coalesce(reference->content->heroType, 'default'),
},
reference->_type == 'magazine' => {
"title": reference->title,
"hero": content->{heroFields},
"heroImage": reference->heroFigure,
"openGraphImage": reference->openGraphImage,
"heroType": coalesce(reference->content->heroType, 'default'),
"heroVideo": reference->heroVideo.asset->{
playbackId,
},
},
},
},
Expand Down
6 changes: 5 additions & 1 deletion web/lib/queries/common/promotions/promoteMagazine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ const promotedMagazineFields = /* groq */ `
...,
${markDefs},
},
"hero": content->{heroFields},
"heroImage": heroFigure,
openGraphImage,
"heroType": coalesce(heroType, 'default'),
"heroVideo": heroVideo.asset->{
playbackId,
},
`

export default /* groq */ `
Expand Down

0 comments on commit a1e96d7

Please sign in to comment.