Skip to content

Commit

Permalink
Billing: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbannov committed Nov 12, 2021
1 parent eb5f692 commit 0192c32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/ASC.Core.Common/Billing/TariffService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public IEnumerable<PaymentInfo> GetPayments(int tenantId)
if (BillingClient.Configured)
{
try
{
{
var quotas = QuotaService.GetTenantQuotas();
var client = GetBillingClient();
foreach (var pi in client.GetPayments(GetPortalId(tenantId)))
Expand Down Expand Up @@ -483,7 +483,7 @@ private Tariff GetBillingInfo(int tenant)
var r = CoreDbContext.Tariffs
.Where(r => r.Tenant == tenant)
.OrderByDescending(r => r.Id)
.SingleOrDefault();
.FirstOrDefault();

if (r == null) return Tariff.CreateDefault();

Expand Down

0 comments on commit 0192c32

Please sign in to comment.