This commit is contained in:
@@ -156,7 +156,7 @@ namespace AyaNova.Biz
|
|||||||
//
|
//
|
||||||
internal async Task<Report> GetAsync(long id, bool logTheGetEvent = true)
|
internal async Task<Report> GetAsync(long id, bool logTheGetEvent = true)
|
||||||
{
|
{
|
||||||
var ret = await ct.Report.SingleOrDefaultAsync(z => z.Id == id);
|
var ret = await ct.Report.AsNoTracking().SingleOrDefaultAsync(z => z.Id == id);
|
||||||
if (logTheGetEvent && ret != null)
|
if (logTheGetEvent && ret != null)
|
||||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
|
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user