Cleaned-up Domain Event Handler

This commit is contained in:
Cesar De la Torre 2017-11-08 11:57:01 -08:00
parent b1e3bdefbe
commit 1e5bea953c

View File

@ -25,7 +25,6 @@ namespace Ordering.API.Application.DomainEventHandlers.OrderStartedEvent
public async Task Handle(OrderStartedDomainEvent orderStartedEvent)
{
var cardTypeId = (orderStartedEvent.CardTypeId != 0) ? orderStartedEvent.CardTypeId : 1;
var buyer = await _buyerRepository.FindAsync(orderStartedEvent.UserId);
bool buyerOriginallyExisted = (buyer == null) ? false : true;