This commit is contained in:
@@ -113,7 +113,7 @@ namespace AyaNova.Api.Controllers
|
||||
//used to drive UI in case of unlicensed or attention required
|
||||
LicenseStatus = AyaNova.Core.License.ActiveKey.Status,
|
||||
MaintenanceExpired = AyaNova.Core.License.ActiveKey.MaintenanceExpired,
|
||||
DbId = AyaNova.Core.License.ActiveKey.DbId
|
||||
ServerDbId = AyaNova.Core.License.ServerDbId
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace AyaNova.Api.Controllers
|
||||
return Ok(ApiOkResponse.Response(ret));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
/// Get DB Emptiness
|
||||
/// </summary>
|
||||
/// <returns>Checks if there is any data in critical tables only</returns>
|
||||
@@ -86,7 +86,7 @@ namespace AyaNova.Api.Controllers
|
||||
if (!Authorized.HasReadFullRole(HttpContext.Items, AyaType.License))
|
||||
{
|
||||
return StatusCode(403, new ApiNotAuthorizedResponse());
|
||||
}
|
||||
}
|
||||
return Ok(ApiOkResponse.Response(await AyaNova.Util.DbUtil.DBIsEmptyAsync(ct, log)));
|
||||
}
|
||||
|
||||
@@ -132,7 +132,8 @@ namespace AyaNova.Api.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
log.LogError($"LicenseController::FetchLicense - failed: {ret}");
|
||||
if (ret != "notfound")
|
||||
log.LogError($"LicenseController::FetchLicense - failed: {ret}");
|
||||
}
|
||||
|
||||
//any response here is OK, there's not necessarily an error, just no key or some mundane problem not technical but biz so let
|
||||
|
||||
Reference in New Issue
Block a user