Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit dca4e1c

Browse files
authored
Merge pull request #499 from raboud/parseError
Parse error
2 parents bc955e6 + 8ef122f commit dca4e1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Services/Basket/Basket.API/IntegrationEvents/EventHandling/ProductPriceChangedIntegrationEventHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public async Task Handle(ProductPriceChangedIntegrationEvent @event)
3030

3131
private async Task UpdatePriceInBasketItems(int productId, decimal newPrice, decimal oldPrice, CustomerBasket basket)
3232
{
33-
var itemsToUpdate = basket?.Items?.Where(x => int.Parse(x.ProductId) == productId).ToList();
33+
string match = productId.ToString();
34+
var itemsToUpdate = basket?.Items?.Where(x => x.ProductId == match).ToList();
3435

3536
if (itemsToUpdate != null)
3637
{

0 commit comments

Comments
 (0)