Put client orders properly
This commit is contained in:
parent
591eaadea2
commit
98a25361ea
1 changed files with 3 additions and 0 deletions
|
@ -302,6 +302,9 @@ class ProductOrder(Resource):
|
|||
"ordered_at": int(time.time()),
|
||||
"product": product_obj,
|
||||
}
|
||||
client.put("/v1/user/{}/orders".format(
|
||||
data['email']), json.dumps(order_obj),
|
||||
value_in_json=True)
|
||||
return {"message": "Order successful",
|
||||
"order_details": order_obj}, 200
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue