From 1c1dedea990bf839e146a3431707cbec9a666d14 Mon Sep 17 00:00:00 2001 From: anazaryan Date: Mon, 23 Dec 2024 18:38:58 +0400 Subject: [PATCH] fix update on autolift --- app/Http/Controllers/EmployerController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 0c99390..07a1a6a 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -867,7 +867,9 @@ class EmployerController extends Controller 'autosend_tg' => $vacancy['autosend_tg'] === 'true', ]; - if ($vacancy['autolift_site'] === 'true') { + $adEmployer = Ad_employer::query()->find($vacancy['id']); + + if ($vacancy['autolift_site'] === 'true' && !$adEmployer->autolift_site) { $data['updated_at'] = now(); } -- 1.7.10.4