Skip to content

Commit

Permalink
Include ticket on purchase (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredpetersen authored Oct 22, 2024
1 parent e6de2d8 commit f56a864
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ public async Task<SimplePurchaseResponse> RefundPurchase(int paymentId)
var purchase = await _context.Purchases
.Where(p => p.Id == paymentId)
.Include(p => p.PurchasedBy)
.Include(p => p.Tickets)
.FirstOrDefaultAsync();

// Does the purchase exist?
Expand Down

0 comments on commit f56a864

Please sign in to comment.