case 4504

This commit is contained in:
2023-04-15 01:15:36 +00:00
parent a4d10e1da3
commit a68eefffa1
4 changed files with 11 additions and 10 deletions

View File

@@ -68,7 +68,7 @@ namespace Sockeye.Biz
//
internal async Task<Subscription> GetAsync(long id, bool logTheGetEvent = true)
{
var ret = await ct.Subscription.AsNoTracking().SingleOrDefaultAsync(z => z.Id == id);
var ret = await ct.Subscription.Include(z => z.Items.OrderBy(x => x.ExpireDate)).AsNoTracking().SingleOrDefaultAsync(z => z.Id == id);
if (logTheGetEvent && ret != null)
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, SockEvent.Retrieved), ct);
await PopulateVizFields(ret);