From 9ae04182fc638aa5f862fde153e5bd07957c44eb Mon Sep 17 00:00:00 2001 From: trentmc <5305452+trentmc@users.noreply.github.com> Date: Sun, 25 Oct 2020 17:11:45 +0100 Subject: [PATCH] bug fix: I had recently renamed the squidjs stuff to oceanjs. But that caused errors, namely, gatsby-node.js would not complete so therefore redirects and more things would not work. So, reverting this part for now. --- gatsby-node.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index 706af761..f9487a64 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -77,8 +77,8 @@ exports.createPages = ({ graphql, actions }) => { } } - oceanJs: github { - repository(name: "ocean.js", owner: "oceanprotocol") { + squidJs: github { + repository(name: "squid-js", owner: "oceanprotocol") { name releases( first: 30 @@ -88,7 +88,7 @@ exports.createPages = ({ graphql, actions }) => { node { isPrerelease isDraft - releaseAssets(first: 1, name: "ocean.js.json") { + releaseAssets(first: 1, name: "squid-js.json") { edges { node { name @@ -155,13 +155,13 @@ exports.createPages = ({ graphql, actions }) => { // API: brizo, aquarius await createSwaggerPages(createPage) - // API: ocean.js - const lastRelease = result.data.oceanJs.repository.releases.edges.filter( + // API: squid-js + const lastRelease = result.data.squidJs.repository.releases.edges.filter( ({ node }) => !node.isPrerelease && !node.isDraft )[0].node.releaseAssets.edges[0].node await createTypeDocPage( createPage, - result.data.oceanJs.repository.name, + result.data.squidJs.repository.name, lastRelease.downloadUrl )