Removed unused readOnly property on return response

This commit is contained in:
2020-05-18 16:25:08 +00:00
parent eacf8eb7aa
commit 07390b6a31
42 changed files with 126 additions and 125 deletions

View File

@@ -64,7 +64,7 @@ namespace AyaNova.Api.Controllers
var ret = AyaNova.Core.License.LicenseInfoAsJson;
return Ok(ApiOkResponse.Response(ret, true));
return Ok(ApiOkResponse.Response(ret));
}
@@ -80,7 +80,7 @@ namespace AyaNova.Api.Controllers
//note: this route is called by the client as the first action so it also acts like a ping to see if the server is up as well
if (serverState.IsClosed)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
return Ok(ApiOkResponse.Response(AyaNova.Core.License.ActiveKey.TrialLicense, true));
return Ok(ApiOkResponse.Response(AyaNova.Core.License.ActiveKey.TrialLicense));
}
@@ -135,7 +135,7 @@ namespace AyaNova.Api.Controllers
//Log
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.License, AyaEvent.LicenseFetch), ct);
return Ok(ApiOkResponse.Response(ret, true));
return Ok(ApiOkResponse.Response(ret));
}
@@ -180,7 +180,7 @@ namespace AyaNova.Api.Controllers
//Log
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.License, AyaEvent.LicenseTrialRequest), ct);
return Ok(ApiOkResponse.Response(ret, true));
return Ok(ApiOkResponse.Response(ret));
}