From f56a864d38389449c704ba3b5619209ee799688b Mon Sep 17 00:00:00 2001 From: Frederik Petersen <43568735+fredpetersen@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:34:54 +0200 Subject: [PATCH] Include ticket on purchase (#292) --- coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs b/coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs index 57722787..187c615e 100644 --- a/coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs +++ b/coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs @@ -340,6 +340,7 @@ public async Task 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?