Browse Source

Temporary fix for older clients

pull/73/head
etomas 8 years ago
parent
commit
783f115b3e
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/Services/Ordering/Ordering.API/Controllers/OrdersController.cs

+ 7
- 0
src/Services/Ordering/Ordering.API/Controllers/OrdersController.cs View File

@ -36,6 +36,13 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.API.Controllers
var requestCreateOrder = new IdentifiedCommand<CreateOrderCommand, bool>(createOrderCommand, guid);
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)
{
return Ok();


Loading…
Cancel
Save