Skip to content

Commit

Permalink
update createRemoteFileNode arguments (gatsbyjs/gatsby#35422)
Browse files Browse the repository at this point in the history
  • Loading branch information
wickedev committed Nov 5, 2022
1 parent efb8c6d commit b7f0a19
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/gatsby-node.ts
Expand Up @@ -310,9 +310,7 @@ export const sourceNodes: GatsbyNode['sourceNodes'] = async ({
if (userProfile.thumbnail) {
const thumbnailNode = await createRemoteFileNode({
url: userProfile.thumbnail,
store,
cache,
reporter,
createNode,
createNodeId,
});
Expand Down Expand Up @@ -341,9 +339,7 @@ export const sourceNodes: GatsbyNode['sourceNodes'] = async ({
if (tag.thumbnail) {
const thumbnailNode = await createRemoteFileNode({
url: tag.thumbnail,
store,
cache,
reporter,
createNode,
createNodeId,
});
Expand Down Expand Up @@ -387,9 +383,7 @@ export const sourceNodes: GatsbyNode['sourceNodes'] = async ({
if (post.thumbnail) {
const thumbnailNode = await createRemoteFileNode({
url: post.thumbnail,
store,
cache,
reporter,
createNode,
createNodeId,
});
Expand All @@ -403,7 +397,7 @@ export const sourceNodes: GatsbyNode['sourceNodes'] = async ({
children: [],
internal: {
type: 'VelogPost',
mediaType: post.isMarkdown ? 'text/markdown': undefined,
mediaType: post.isMarkdown ? 'text/markdown' : undefined,
content: post.rawContent ?? '',
contentDigest: createContentDigest(postSource),
},
Expand All @@ -420,9 +414,7 @@ export const sourceNodes: GatsbyNode['sourceNodes'] = async ({
if (series.thumbnail) {
const thumbnailNode = await createRemoteFileNode({
url: series.thumbnail,
store,
cache,
reporter,
createNode,
createNodeId,
});
Expand Down

0 comments on commit b7f0a19

Please sign in to comment.