This commit is contained in:
2020-08-05 19:03:20 +00:00
parent 6665f3b3db
commit b67dba6363
4 changed files with 9 additions and 8 deletions

View File

@@ -80,7 +80,7 @@ namespace AyaNova.Api.Controllers
[HttpGet("info/{ayaType}/{id}")]
public async Task<IActionResult> GetInfo([FromRoute] AyaType ayaType, [FromRoute] long id, [FromQuery] string phrase, [FromQuery] int max = 80)
{
if (serverState.IsClosed)
if (!serverState.IsOpen)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
if (!Authorized.HasReadFullRole(HttpContext.Items, ayaType))