From 7cc59e329ae64742532f72ac766022e430b42b49 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 21 Apr 2023 17:40:11 +0000 Subject: [PATCH] --- server/biz/BizObjectFactory.cs | 1 + server/biz/SubscriptionBiz.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/biz/BizObjectFactory.cs b/server/biz/BizObjectFactory.cs index edb3c44..b492f2f 100644 --- a/server/biz/BizObjectFactory.cs +++ b/server/biz/BizObjectFactory.cs @@ -68,6 +68,7 @@ namespace Sockeye.Biz case SockType.GZCase: return new GZCaseBiz(ct, userId, translationId, roles); case SockType.Subscription: + case SockType.SubscriptionItem: return new SubscriptionBiz(ct, userId, translationId, roles); default: diff --git a/server/biz/SubscriptionBiz.cs b/server/biz/SubscriptionBiz.cs index 01c2a38..935beab 100644 --- a/server/biz/SubscriptionBiz.cs +++ b/server/biz/SubscriptionBiz.cs @@ -66,7 +66,7 @@ namespace Sockeye.Biz //////////////////////////////////////////////////////////////////////////////////////////////// //GET // - internal async Task GetAsync(long id, bool logTheGetEvent = true) + internal async Task GetAsync(long id, bool logTheGetEvent = true, bool populateForReporting = false) { var ret = await ct.Subscription.Include(z => z.Items.OrderByDescending(x=>x.Active).ThenBy(x => x.ExpireDate)).AsNoTracking().SingleOrDefaultAsync(z => z.Id == id); if (logTheGetEvent && ret != null)