Browse Source

Revert grant checking else block

pull/1956/head
Daniyar Alpyspayev 2 years ago
committed by GitHub
parent
commit
e8e6e24d6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/Services/Webhooks/Webhooks.API/Controllers/WebhooksController.cs

+ 4
- 2
src/Services/Webhooks/Webhooks.API/Controllers/WebhooksController.cs View File

@ -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]


Loading…
Cancel
Save