From cf1955b5fa7b49307658ac8380579b57fb9153a4 Mon Sep 17 00:00:00 2001 From: NikitaVashchuk Date: Wed, 24 May 2023 13:19:47 +0500 Subject: [PATCH] fix retryWebhook --- web/ASC.Web.Api/Api/Settings/WebhooksController.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/web/ASC.Web.Api/Api/Settings/WebhooksController.cs b/web/ASC.Web.Api/Api/Settings/WebhooksController.cs index fb9df23a77..a5542638e9 100644 --- a/web/ASC.Web.Api/Api/Settings/WebhooksController.cs +++ b/web/ASC.Web.Api/Api/Settings/WebhooksController.cs @@ -138,11 +138,6 @@ public class WebhooksController : BaseSettingsController throw new ItemNotFoundException(); } - if (item.Status == 0) - { - throw new HttpException(HttpStatusCode.Forbidden); - } - var result = await _webhookPublisher.PublishAsync(item.Id, item.RequestPayload, item.ConfigId); return _mapper.Map(result); @@ -157,7 +152,7 @@ public class WebhooksController : BaseSettingsController { var item = await _webhookDbWorker.ReadJournal(id); - if (item == null || item.Status >= 200 && item.Status <= 299 || item.Status == 0) + if (item == null) { continue; }