diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index b4f7baf..e64f858 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -716,7 +716,7 @@ class WorkerController extends Controller if (isset($Worker->id) && !empty($data['job_titles'])) { $existJob = Job_title::query()->find($data['job_titles']); - if (!$existJob) { + if ($existJob) { $Title_Worker = new Title_worker(); $Title_Worker->worker_id = $Worker->id; $Title_Worker->job_title_id = $data['job_titles'];