Skip to content

Commit

Permalink
Remove sensitivity overload from Equals on DbSet (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasanker authored Sep 22, 2023
1 parent 3942151 commit 5fb42da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private async Task<Guid> GenerateUniqueOrderId()
public async Task<SimplePurchaseResponse> 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");
Expand Down

0 comments on commit 5fb42da

Please sign in to comment.