Browse Source

Fix merge issues with rebase.

pull/128/head
BillWagner 7 years ago
committed by Bill Wagner
parent
commit
d44bf27550
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/Services/Basket/Basket.API/Controllers/BasketController.cs
  2. +1
    -1
      src/Services/Basket/Basket.API/IntegrationEvents/EventHandling/ProductPriceChangedIntegrationEventHandler.cs

+ 1
- 1
src/Services/Basket/Basket.API/Controllers/BasketController.cs View File

@ -43,7 +43,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API.Controllers
[HttpDelete("{id}")] [HttpDelete("{id}")]
public Task Delete(string id) public Task Delete(string id)
{ {
return _repository.DeleteBasket(id);
return _repository.DeleteBasketAsync(id);
} }
} }
} }

+ 1
- 1
src/Services/Basket/Basket.API/IntegrationEvents/EventHandling/ProductPriceChangedIntegrationEventHandler.cs View File

@ -33,7 +33,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Even
{ {
var itemsToUpdate = basket?.Items?.Where(x => int.Parse(x.ProductId) == productId).ToList(); var itemsToUpdate = basket?.Items?.Where(x => int.Parse(x.ProductId) == productId).ToList();
if ((itemsToUpdate != null) && (itemsToUpdate.Any())
if ((itemsToUpdate != null) && (itemsToUpdate.Any()))
{ {
foreach (var item in itemsToUpdate) foreach (var item in itemsToUpdate)
{ {


Loading…
Cancel
Save