From 39616ca181c3c6c0dd08f8eec76e50c505052e77 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Tue, 13 Feb 2024 22:07:07 -0500 Subject: [PATCH] refactor!: Change default event type when none is specified Close is more interesting than Accept since it has more stats --- src/notifier/AbstractWebhookNotifier.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/notifier/AbstractWebhookNotifier.ts b/src/notifier/AbstractWebhookNotifier.ts index 9f08efe..96cfb9a 100644 --- a/src/notifier/AbstractWebhookNotifier.ts +++ b/src/notifier/AbstractWebhookNotifier.ts @@ -72,8 +72,7 @@ export abstract class AbstractWebhookNotifier { } } if(events.length === 0) { - // if still no events then notify on all - events.push({type: 'accept'}); + // if still no events then only notify on close since it has the most interesting statistics events.push({type: 'close'}); }