From 7669d7ef0d0d1700891eb8cafa07bb5556d09c05 Mon Sep 17 00:00:00 2001 From: Angus Fu Date: Wed, 20 Oct 2021 10:57:13 +0800 Subject: [PATCH] Update ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler.cs Call this method in field events is redundant? It shouldn't exist --- ...teOrAddBuyerAggregateWhenOrderStartedDomainEventHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/Ordering/Ordering.API/Application/DomainEventHandlers/OrderStartedEvent/ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler.cs b/src/Services/Ordering/Ordering.API/Application/DomainEventHandlers/OrderStartedEvent/ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler.cs index 44e8ffcf7..6f733dcea 100644 --- a/src/Services/Ordering/Ordering.API/Application/DomainEventHandlers/OrderStartedEvent/ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler.cs +++ b/src/Services/Ordering/Ordering.API/Application/DomainEventHandlers/OrderStartedEvent/ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler.cs @@ -54,8 +54,8 @@ namespace Ordering.API.Application.DomainEventHandlers.OrderStartedEvent _buyerRepository.Update(buyer) : _buyerRepository.Add(buyer); - await _buyerRepository.UnitOfWork - .SaveEntitiesAsync(cancellationToken); + //await _buyerRepository.UnitOfWork + // .SaveEntitiesAsync(cancellationToken); var orderStatusChangedTosubmittedIntegrationEvent = new OrderStatusChangedToSubmittedIntegrationEvent(orderStartedEvent.Order.Id, orderStartedEvent.Order.OrderStatus.Name, buyer.Name); await _orderingIntegrationEventService.AddAndSaveEventAsync(orderStatusChangedTosubmittedIntegrationEvent);