diff --git a/lib.php b/lib.php index b3b2659..02042ea 100644 --- a/lib.php +++ b/lib.php @@ -219,6 +219,7 @@ function local_webhooks_delete_all_records() { global $DB; $result = $DB->delete_records(LOCAL_WEBHOOKS_TABLE_SERVICES, null); + $DB->delete_records(LOCAL_WEBHOOKS_TABLE_EVENTS, null); /* Clear the plugin cache */ local_webhooks_cache_reset();