From f964aca7a987386d37efd972a1609d3b9a41f96d Mon Sep 17 00:00:00 2001 From: miroman-afk <74014189+miroman-afk@users.noreply.github.com> Date: Thu, 13 Jan 2022 01:43:50 +0300 Subject: [PATCH] v2.5 Update response in "delete client" --- commands/POSTClient.php | 2 ++ 1 file changed, 2 insertions(+) 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 {