We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9b1548 commit 783f115Copy full SHA for 783f115
1 file changed
src/Services/Ordering/Ordering.API/Controllers/OrdersController.cs
@@ -36,6 +36,13 @@ public async Task<IActionResult> CreateOrder([FromBody]CreateOrderCommand create
36
var requestCreateOrder = new IdentifiedCommand<CreateOrderCommand, bool>(createOrderCommand, guid);
37
result = await _mediator.SendAsync(requestCreateOrder);
38
}
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
+
46
if (result)
47
{
48
return Ok();
0 commit comments