mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 05:06:04 +08:00

Each time a message is created through a webhook, we create we webhook_event associated to this webhook. When destroying a webhook, we were not destroying the webhook_events which was causing orphans records and more importantly errors in the app expecting to find and associated webhook.