Revert grant checking else block

This commit is contained in:
Daniyar Alpyspayev 2022-08-31 17:58:18 +06:00 committed by GitHub
parent a339e213ba
commit e8e6e24d6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}")]