mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 10:39:56 +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.