Revert "fix: update order cancellation response check to use 'result' key"

This reverts commit 241785ab91.
This commit is contained in:
2025-09-01 07:08:13 +03:00
parent 241785ab91
commit 39b0cb2418

View File

@@ -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")}'