Update ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler.cs
Call this method in field events is redundant? It shouldn't exist
This commit is contained in:
parent
46219957ef
commit
7669d7ef0d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user