From 5fb42dabf427990f19d06a2a5051bb8bd42ad518 Mon Sep 17 00:00:00 2001 From: Jonas Anker Rasmussen Date: Fri, 22 Sep 2023 21:47:38 +0200 Subject: [PATCH] Remove sensitivity overload from Equals on DbSet (#210) --- coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs b/coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs index ad38df5b..c6fdd52c 100644 --- a/coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs +++ b/coffeecard/CoffeeCard.Library/Services/v2/PurchaseService.cs @@ -272,7 +272,7 @@ private async Task GenerateUniqueOrderId() public async Task RedeemVoucher(string voucherCode, User user) { var voucher = await _context.Vouchers - .Where(v => v.Code.Equals(voucherCode, StringComparison.OrdinalIgnoreCase)) + .Where(v => v.Code.Equals(voucherCode)) .Include(v => v.Product) .FirstOrDefaultAsync(); if (voucher == null) throw new EntityNotFoundException($"Voucher '{voucherCode}' does not exist");