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

@@ -155,7 +155,7 @@ namespace AyaNova.Api.Controllers
[HttpGet("list")]
public async Task<IActionResult> GetQueue()
{
if (serverState.IsClosed)
if (!serverState.IsOpen)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
//NOTE: in future if getting list for another user should just duplicate this method but add the parameter for user id