This commit is contained in:
2020-06-18 19:59:45 +00:00
parent 6c699e1054
commit e192ca042b
7 changed files with 15 additions and 9 deletions

View File

@@ -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
};

View File

@@ -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