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;