craftcms / webhooks

Plugin for integrating Craft with Zapier and IFTTT.
https://plugins.craftcms.com/webhooks
MIT License
84 stars 12 forks source link

afterDelete webhook not triggering for each site #61

Open weotch opened 2 years ago

weotch commented 2 years ago

Description

I have an entry on a multi site craft instance. I am using custom propagation on the section ("Let each entry choose which sites it should be saved to"). When I delete an entry, I am expecting a webhook to fire once for each site that the entry has been propagated to. Instead, it's only firing for the site I am currently viewing in the admin.

My use case is headless Craft with a unique Netlify app for each site. When I delete an entry, I want to trigger SSG on all of the Netlify apps that had been rendering that entry.

Steps to reproduce

  1. Create a webhook like this: image

  2. Create and save an entry that has been propagated to multiple sites image

  3. Delete that entry image

  4. Check the webhook activity. I am expecting 2 delete rows, one for each site but only one is produced. image

Additional info

Screen Shot 2021-09-29 at 8 50 08 AM