Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
datakurre committed Aug 30, 2019
1 parent 015897a commit 14a1643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ exports.sourceNodes = async (
updateParents.add(parentId(node.id));
}
reporter.info(`Deleting node – ${node.id.replace(baseUrl, '') || '/'}`);
touchNode({ nodeId: node.id }); // deleting fails without plugin ownrship touch
touchNode({ nodeId: node.id }); // deleting fails without plugin ownrship touch
deleteNode({ node: node });
for (const id of node.children || []) {
const child = getNode(id);
if (child) {
reporter.info(`Deleting node – ${id.replace(baseUrl, '') || '/'}`);
touchNode({ nodeId: node.id }); // deleting fails without touch
touchNode({ nodeId: node.id }); // deleting fails without touch
deleteNode({ node: child });
}
}
Expand Down

0 comments on commit 14a1643

Please sign in to comment.