matching camelCase for orderId json. tests Pass

This commit is contained in:
Paul Yuknewicz 2022-02-07 17:38:11 -08:00 committed by Artur Souza
parent f20a96dcd8
commit 1409196e10
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def subscribe():
# Dapr subscription in /dapr/subscribe sets up this route
@app.route('/orders', methods=['POST'])
def orders_subscriber():
event_orderid = request.json['data']['orderid']
event_orderid = request.json['data']['orderId']
print('Subscriber received : ' + json.dumps(event_orderid), flush=True)
return json.dumps({'success': True}), 200, {
'ContentType': 'application/json'}