Temporary fix for older clients

This commit is contained in:
etomas 2017-03-03 12:10:30 +01:00
parent f9b15481d1
commit 783f115b3e

View File

@ -36,6 +36,13 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.API.Controllers
var requestCreateOrder = new IdentifiedCommand<CreateOrderCommand, bool>(createOrderCommand, guid); var requestCreateOrder = new IdentifiedCommand<CreateOrderCommand, bool>(createOrderCommand, guid);
result = await _mediator.SendAsync(requestCreateOrder); result = await _mediator.SendAsync(requestCreateOrder);
} }
else
{
// If no x-requestid header is found we process the order anyway. This is just temporary to not break existing clients
// that aren't still updated. When all clients were updated this could be removed.
result = await _mediator.SendAsync(createOrderCommand);
}
if (result) if (result)
{ {
return Ok(); return Ok();