Skip to content

Commit

Permalink
CU-8687yhbz5 trying to fix bug in sub controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ucswift committed May 23, 2024
1 parent 3008f29 commit 1ddfdd1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ public async Task<IActionResult> Index()
}

var allPayments = await _subscriptionsService.GetAllPaymentsForDepartmentAsync(DepartmentId);
model.HadStripePaymentIn30Days = allPayments.Any(x => x.EndingOn >= DateTime.UtcNow.AddYears(-2) && x.Method == (int)PaymentMethods.Stripe);
if (allPayments != null)
model.HadStripePaymentIn30Days = allPayments.Any(x => x.EndingOn >= DateTime.UtcNow.AddYears(-2) && x.Method == (int)PaymentMethods.Stripe);
else
model.HadStripePaymentIn30Days = false;

if (model.Payment != null)
{
Expand Down

0 comments on commit 1ddfdd1

Please sign in to comment.