Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit e8e6e24

Browse files
authored
Revert grant checking else block
1 parent a339e21 commit e8e6e24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Services/Webhooks/Webhooks.API/Controllers/WebhooksController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ public async Task<IActionResult> SubscribeWebhook(WebhookSubscriptionRequest req
6969
await _dbContext.SaveChangesAsync();
7070
return CreatedAtAction("GetByUserAndId", new { id = subscription.Id }, subscription);
7171
}
72-
73-
return StatusCode(418, "Grant url can't be validated");
72+
else
73+
{
74+
return StatusCode(418, "Grant url can't be validated");
75+
}
7476
}
7577

7678
[Authorize]

0 commit comments

Comments
 (0)