diff --git a/app/Helpers/helpers.php b/app/Helpers/helpers.php index d690acf..ed36fc2 100644 --- a/app/Helpers/helpers.php +++ b/app/Helpers/helpers.php @@ -466,7 +466,7 @@ function syncWithBankSystem( try { $res = $client->sendAsync($request)->wait(); - return $res->getBody(); + return (string) $res->getBody(); } catch (Exception $e) { Log::error($e); diff --git a/app/Nova/Actions/Sber/SyncWithSystem.php b/app/Nova/Actions/Sber/SyncWithSystem.php index 1455219..17b9051 100644 --- a/app/Nova/Actions/Sber/SyncWithSystem.php +++ b/app/Nova/Actions/Sber/SyncWithSystem.php @@ -67,7 +67,7 @@ class SyncWithSystem extends Action info(['response' => $systemRawResponse]); - return ActionResponse::success('Sync with system success'); + return ActionResponse::message('Sync with system success'); // $systemResponse = json_decode($systemRawResponse);