mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:14:11 +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.