Commit 1c1dedea990bf839e146a3431707cbec9a666d14
1 parent
b0574d0f76
Exists in
master
fix update on autolift
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
app/Http/Controllers/EmployerController.php
... | ... | @@ -867,7 +867,9 @@ class EmployerController extends Controller |
867 | 867 | 'autosend_tg' => $vacancy['autosend_tg'] === 'true', |
868 | 868 | ]; |
869 | 869 | |
870 | - if ($vacancy['autolift_site'] === 'true') { | |
870 | + $adEmployer = Ad_employer::query()->find($vacancy['id']); | |
871 | + | |
872 | + if ($vacancy['autolift_site'] === 'true' && !$adEmployer->autolift_site) { | |
871 | 873 | $data['updated_at'] = now(); |
872 | 874 | } |
873 | 875 |