Revert grant checking else block
This commit is contained in:
parent
a339e213ba
commit
e8e6e24d6b
@ -69,9 +69,11 @@ public class WebhooksController : ControllerBase
|
||||
await _dbContext.SaveChangesAsync();
|
||||
return CreatedAtAction("GetByUserAndId", new { id = subscription.Id }, subscription);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
return StatusCode(418, "Grant url can't be validated");
|
||||
}
|
||||
}
|
||||
|
||||
[Authorize]
|
||||
[HttpDelete("{id:int}")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user