This commit is contained in:
@@ -156,7 +156,7 @@ namespace AyaNova.Biz
|
||||
//
|
||||
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)
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user