This commit is contained in:
@@ -117,9 +117,17 @@ namespace AyaNova.Api.Controllers
|
||||
try
|
||||
{
|
||||
var ret = await AyaNova.Core.License.FetchKeyAsync(serverState, ct, log, false);
|
||||
//Log
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.License, AyaEvent.LicenseFetch), ct);
|
||||
//most often the result will be not found but in future might be other results
|
||||
//main thing is to not log anything but OK response
|
||||
if (ret == "ok")
|
||||
{
|
||||
//Log
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.License, AyaEvent.LicenseFetch), ct);
|
||||
|
||||
}
|
||||
|
||||
//any response here is OK, there's not necessarily an error, just no key or some mundane problem not technical but biz so let
|
||||
//ret string instruct client on what to do
|
||||
return Ok(ret);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user