Revert "fix: update order cancellation response check to use 'result' key"
This reverts commit 241785ab91.
This commit is contained in:
@@ -151,7 +151,7 @@ def cancel_assembly():
|
||||
return jsonify(response)
|
||||
order_id = assembly.order_id
|
||||
sipro_response = sipro.api.orders.cancel_order_assembly(order_id)
|
||||
if not sipro_response.get('result'):
|
||||
if not sipro_response.get('ok'):
|
||||
response = {
|
||||
'ok': False,
|
||||
'message': f'Ошибка: {sipro_response.get("message")}'
|
||||
|
||||
Reference in New Issue
Block a user