This commit is contained in:
2018-08-28 00:03:06 +00:00
parent 82bd65cf49
commit b60dc75c8e
9 changed files with 85 additions and 17 deletions

View File

@@ -67,7 +67,7 @@ namespace AyaNova.Api.Controllers
return StatusCode(401, new ApiNotAuthorizedResponse());
}
var result = await EventLogProcessor.GetLogForObject(opt.AyId, ct);
var result = await EventLogProcessor.GetLogForObject(opt.AyId, UserLocaleIdFromContext.LocaleId(HttpContext.Items), ct);
//Log
EventLogProcessor.AddEntry(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.Metrics, AyaEvent.Retrieved), ct);
@@ -107,7 +107,7 @@ namespace AyaNova.Api.Controllers
return StatusCode(401, new ApiNotAuthorizedResponse());
}
var result = await EventLogProcessor.GetLogForUser(opt.AyId, ct);
var result = await EventLogProcessor.GetLogForUser(opt.AyId, UserLocaleIdFromContext.LocaleId(HttpContext.Items), ct);
//Log
EventLogProcessor.AddEntry(new Event(UserId, 0, AyaType.Metrics, AyaEvent.Retrieved), ct);