Commit bc71e803a9dbd22d5e930328ce91cc33a9dbd485
1 parent
40290093cd
Exists in
master
fix worker register error
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
app/Http/Controllers/WorkerController.php
... | ... | @@ -716,7 +716,7 @@ class WorkerController extends Controller |
716 | 716 | |
717 | 717 | if (isset($Worker->id) && !empty($data['job_titles'])) { |
718 | 718 | $existJob = Job_title::query()->find($data['job_titles']); |
719 | - if (!$existJob) { | |
719 | + if ($existJob) { | |
720 | 720 | $Title_Worker = new Title_worker(); |
721 | 721 | $Title_Worker->worker_id = $Worker->id; |
722 | 722 | $Title_Worker->job_title_id = $data['job_titles']; |