Skip to content

Commit

Permalink
update diversity query
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHramovich authored Nov 12, 2020
1 parent 885c97a commit 83c2185
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@focus-reactive/graphql-content-layer",
"version": "2.3.6",
"version": "2.3.7",
"private": false,
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/fetch-diversity.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const queryPages = /* GraphQL */ `
sponsors {
id
title
site
avatar {
url
}
Expand Down Expand Up @@ -58,9 +59,10 @@ const fetchData = async (client, { tagColors, ...vars }) => {
const diversity = {
...data,
description: await markdownToHtml(data.description),
sponsors: data.sponsors.map(({ title, avatar: { url }, id }) => ({
sponsors: data.sponsors.map(({ title, avatar: { url }, id, site }) => ({
id,
title,
site,
avatar: url,
contentType: contentTypeMap.Sponsor,
})),
Expand Down

0 comments on commit 83c2185

Please sign in to comment.