From c47b70282d424b9191a6bfb47c8c32f3514f89ab Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Sat, 24 Aug 2024 15:06:57 +0200 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/WorkerController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index 03d9a89..5d9f733 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -1012,7 +1012,7 @@ class WorkerController extends Controller 'flag_new' => 1 ]; - $id_message = Message::add_message( + $message = Message::add_message( $request, $params['send_user_id'], $params['send_to_user_id'], @@ -1020,7 +1020,7 @@ class WorkerController extends Controller file_store_path: "worker/$id" ); - $data['message_id'] = $id_message; + $data['message_id'] = $message->id; $data['ad_employer_id'] = $params['send_vacancy']; $data['job_title_id'] = $params['send_job_title_id']; $data['flag'] = 1; -- 1.7.10.4