diff --git a/app/Nova/Actions/Sber/SyncWithSystem.php b/app/Nova/Actions/Sber/SyncWithSystem.php index ba6174c..b86780f 100644 --- a/app/Nova/Actions/Sber/SyncWithSystem.php +++ b/app/Nova/Actions/Sber/SyncWithSystem.php @@ -76,12 +76,15 @@ class SyncWithSystem extends Action $success = false; if (is_object($systemResponse)) { - // Usually works here... $success = $systemResponse->errCode == 0; } else { $success = $systemResponse['errCode'] == 0; } + info([ + 'ok' => $systemResponse + ]); + $orderItem->update([ 'synced_with_system' => $success, ]);