Temporary fix for older clients
This commit is contained in:
parent
f9b15481d1
commit
783f115b3e
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user