Skip to content

Commit

Permalink
fix(graph): use the JWT correctly in refetchAndGenerateFromOneGraph (
Browse files Browse the repository at this point in the history
…#4832)

* fix(graph): use the JWT correctly in `refetchAndGenerateFromOneGraph`

* chore: update contributors field
  • Loading branch information
anmonteiro authored Jul 19, 2022
1 parent e00acbc commit 623fe51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/graph/graph-pull.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const graphPull = async (options, command) => {
const netlifyToken = await command.authenticate()
const siteId = site.id

await refetchAndGenerateFromOneGraph({ logger: log, netlifyGraphConfig, netlifyToken, state, siteId })
const { jwt } = await OneGraphCliClient.getGraphJwtForSite({ siteId, nfToken: netlifyToken })

await refetchAndGenerateFromOneGraph({ logger: log, netlifyGraphConfig, jwt, state, siteId })

const oneGraphSessionId = loadCLISession(state)

Expand All @@ -56,7 +58,6 @@ const graphPull = async (options, command) => {
error(`Failed to fetch and update Netlify GraphQL schema`)
}

const { jwt } = await OneGraphCliClient.getGraphJwtForSite({ siteId, nfToken: netlifyToken })
const next = await OneGraphCliClient.fetchCliSessionEvents({
appId: siteId,
jwt,
Expand Down

1 comment on commit 623fe51

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 227 MB

Please sign in to comment.