Skip to content

Commit 783f115

Browse files
committed
Temporary fix for older clients
1 parent f9b1548 commit 783f115

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/Services/Ordering/Ordering.API/Controllers/OrdersController.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public async Task<IActionResult> CreateOrder([FromBody]CreateOrderCommand create
3636
var requestCreateOrder = new IdentifiedCommand<CreateOrderCommand, bool>(createOrderCommand, guid);
3737
result = await _mediator.SendAsync(requestCreateOrder);
3838
}
39+
else
40+
{
41+
// If no x-requestid header is found we process the order anyway. This is just temporary to not break existing clients
42+
// that aren't still updated. When all clients were updated this could be removed.
43+
result = await _mediator.SendAsync(createOrderCommand);
44+
}
45+
3946
if (result)
4047
{
4148
return Ok();

0 commit comments

Comments
 (0)