Commit c47b70282d424b9191a6bfb47c8c32f3514f89ab

Authored by Сергей П
1 parent b425eeabc0
Exists in master

правки

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

app/Http/Controllers/WorkerController.php
... ... @@ -1012,7 +1012,7 @@ class WorkerController extends Controller
1012 1012 'flag_new' => 1
1013 1013 ];
1014 1014  
1015   - $id_message = Message::add_message(
  1015 + $message = Message::add_message(
1016 1016 $request,
1017 1017 $params['send_user_id'],
1018 1018 $params['send_to_user_id'],
... ... @@ -1020,7 +1020,7 @@ class WorkerController extends Controller
1020 1020 file_store_path: "worker/$id"
1021 1021 );
1022 1022  
1023   - $data['message_id'] = $id_message;
  1023 + $data['message_id'] = $message->id;
1024 1024 $data['ad_employer_id'] = $params['send_vacancy'];
1025 1025 $data['job_title_id'] = $params['send_job_title_id'];
1026 1026 $data['flag'] = 1;