Update ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler.cs

Call this method in field events is redundant? It shouldn't exist
This commit is contained in:
Angus Fu 2021-10-20 10:57:13 +08:00 committed by GitHub
parent 46219957ef
commit 7669d7ef0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);