This commit is contained in:
2021-01-22 16:05:03 +00:00
parent c66d080f9f
commit d8c4455e84

View File

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