Skip to content

Commit

Permalink
fix(gatsby-source-drupal): Move reporter message inside condition
Browse files Browse the repository at this point in the history
  • Loading branch information
skippednote committed Jul 29, 2019
1 parent 9bda51f commit 6878a48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/gatsby-source-drupal/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,20 @@ exports.sourceNodes = async (
})

reporter.info(`Downloading remote files from Drupal`)
downloadingFilesActivity.start()

// Download all files (await for each pool to complete to fix concurrency issues)
const fileNodes = [...nodes.values()].filter(isFileNode)
if (fileNodes.length) {
downloadingFilesActivity.start()
await asyncPool(concurrentFileRequests, fileNodes, async node => {
await downloadFile(
{ node, store, cache, createNode, createNodeId },
pluginOptions
)
})
downloadingFilesActivity.end()
}

downloadingFilesActivity.end()

// Create each node
for (const node of nodes.values()) {
node.internal.contentDigest = createContentDigest(node)
Expand Down

0 comments on commit 6878a48

Please sign in to comment.