Skip to content

Commit

Permalink
End Drupal activity on delete webhooks and invalid secret key webhooks (
Browse files Browse the repository at this point in the history
  • Loading branch information
smthomas authored Oct 2, 2020
1 parent 36421c5 commit dd264de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/gatsby-source-drupal/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ exports.sourceNodes = async (
reporter.warn(
`The secret in this request did not match your plugin options secret.`
)
changesActivity.end()
return
}
if (action === `delete`) {
actions.deleteNode({ node: getNode(createNodeId(id)) })
reporter.log(`Deleted node: ${id}`)
changesActivity.end()
return
}

Expand Down

0 comments on commit dd264de

Please sign in to comment.