From 0a213b603fb6b41466e06ae6d8a4aa2cd749909a Mon Sep 17 00:00:00 2001 From: deleteLater Date: Tue, 9 Jan 2024 16:30:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20run=20webhook=20asynchron?= =?UTF-8?q?ously=20(#569)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/Application/FeatureFlags/OnFeatureFlagDeleted.cs | 2 +- modules/back-end/src/Application/Segments/OnSegmentDeleted.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/back-end/src/Application/FeatureFlags/OnFeatureFlagDeleted.cs b/modules/back-end/src/Application/FeatureFlags/OnFeatureFlagDeleted.cs index 7295382da..f1b3aba7a 100644 --- a/modules/back-end/src/Application/FeatureFlags/OnFeatureFlagDeleted.cs +++ b/modules/back-end/src/Application/FeatureFlags/OnFeatureFlagDeleted.cs @@ -53,6 +53,6 @@ public async Task Handle(OnFeatureFlagDeleted notification, CancellationToken ca await _cache.DeleteFlagAsync(envId, flagId); // handle webhooks - await _webhookHandler.HandleAsync(notification.Flag, notification.DataChange, notification.OperatorId); + _ = _webhookHandler.HandleAsync(notification.Flag, notification.DataChange, notification.OperatorId); } } \ No newline at end of file diff --git a/modules/back-end/src/Application/Segments/OnSegmentDeleted.cs b/modules/back-end/src/Application/Segments/OnSegmentDeleted.cs index b8d0b4e9f..01bf62253 100644 --- a/modules/back-end/src/Application/Segments/OnSegmentDeleted.cs +++ b/modules/back-end/src/Application/Segments/OnSegmentDeleted.cs @@ -53,6 +53,6 @@ public async Task Handle(OnSegmentDeleted notification, CancellationToken cancel await _cache.DeleteSegmentAsync(envId, segmentId); // handle webhooks - await _webhookHandler.HandleAsync(notification.Segment, notification.DataChange, notification.OperatorId); + _ = _webhookHandler.HandleAsync(notification.Segment, notification.DataChange, notification.OperatorId); } } \ No newline at end of file