This commit is contained in:
@@ -104,7 +104,7 @@ namespace AyaNova.Biz
|
|||||||
//
|
//
|
||||||
internal async Task<TaskGroup> GetAsync(long id, bool logTheGetEvent = true)
|
internal async Task<TaskGroup> GetAsync(long id, bool logTheGetEvent = true)
|
||||||
{
|
{
|
||||||
var ret = await ct.TaskGroup.AsNoTracking().Include(z => z.Items).SingleOrDefaultAsync(m => m.Id == id);
|
var ret = await ct.TaskGroup.AsNoTracking().Include(z => z.Items.OrderBy(item => item.Sequence)).SingleOrDefaultAsync(m => m.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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user