From e8e6e24d6b9cf6a36322d112f2b29fa9ad202934 Mon Sep 17 00:00:00 2001 From: Daniyar Alpyspayev Date: Wed, 31 Aug 2022 17:58:18 +0600 Subject: [PATCH] Revert grant checking else block --- .../Webhooks/Webhooks.API/Controllers/WebhooksController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Services/Webhooks/Webhooks.API/Controllers/WebhooksController.cs b/src/Services/Webhooks/Webhooks.API/Controllers/WebhooksController.cs index 0e7cdce90..2ed5ea245 100644 --- a/src/Services/Webhooks/Webhooks.API/Controllers/WebhooksController.cs +++ b/src/Services/Webhooks/Webhooks.API/Controllers/WebhooksController.cs @@ -69,8 +69,10 @@ public class WebhooksController : ControllerBase await _dbContext.SaveChangesAsync(); return CreatedAtAction("GetByUserAndId", new { id = subscription.Id }, subscription); } - - return StatusCode(418, "Grant url can't be validated"); + else + { + return StatusCode(418, "Grant url can't be validated"); + } } [Authorize]