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