diff --git a/commands/POSTClient.php b/commands/POSTClient.php index 363f88b..7722c96 100644 --- a/commands/POSTClient.php +++ b/commands/POSTClient.php @@ -90,6 +90,7 @@ class POSTClient extends HRCCommand implements HRCCommandInterface { if ($input['task'] == 'delete') { $client = Client::find($input['id']); + $clientGroup = ClientsGroup::where('code', $client->group_id)->first(); $clientPhone = ClientsPhone::where('client_guid', $client->user_code)->first(); $clientPhone = ClientsPhone::find($clientPhone['id']); $clientEmail = ClientsEmail::where('client_guid', $client->user_code)->first(); @@ -117,6 +118,7 @@ class POSTClient extends HRCCommand implements HRCCommandInterface { return [ 'status' => 'success', 'message' => 'Клиент удален', + 'currentGroup' => $clientGroup['id'], ]; } } else {