From cee06030d87bfeaa3e029b6665e64f6a9ebd87ae Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 23 Feb 2022 17:55:56 +0100 Subject: [PATCH] Issue-#850: Aquarius rest api --- gatsby-node.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index d1865367..ac9cfeaf 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -180,6 +180,7 @@ exports.createPages = ({ graphql, actions }) => { markdowns, 'provider' )[0].node + await createRestApiPage( createPage, providerRestApi, @@ -327,7 +328,8 @@ const createRestApiPage = async (createPage, node, slug) => { } const getRestApiPageFromMarkdownList = (markdownList, string) => { - return markdownList.filter(({ node }) => { - return node.frontmatter.app === string && node.frontmatter.slug === 'API.md' - }) + return markdownList.filter( + ({ node }) => + node.frontmatter.app === string && node.frontmatter.slug === 'API.md' + ) }