From 5d6e2f2f516355c46c65aab45480f49e8f949eaf Mon Sep 17 00:00:00 2001 From: Fedor Date: Wed, 30 Oct 2024 18:42:44 +0700 Subject: [PATCH] task-132985 minor fixes --- app/Listeners/MessageAutoresponder.php | 2 +- resources/views/employers/dialog.blade.php | 2 +- resources/views/employers/vacancy_autolift.blade.php | 4 ++-- resources/views/workers/dialog.blade.php | 2 +- resources/views/workers/resume_autolift.blade.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Listeners/MessageAutoresponder.php b/app/Listeners/MessageAutoresponder.php index 7c97781..6ef78e9 100644 --- a/app/Listeners/MessageAutoresponder.php +++ b/app/Listeners/MessageAutoresponder.php @@ -43,7 +43,7 @@ class MessageAutoresponder ->where('user_id', $message->to_user_id) ->where('to_user_id', $message->user_id) ->where('text', $user->autoresponder_message) - ->where('created_at', '>', now()->subDays(4)) + ->where('created_at', '>', now()->subDay()) ->orWhereExists(function (Builder $query) use ($message) { $query->from('messages', 'm2') ->where('m2.created_at', '>', now()->subMinutes(5)) diff --git a/resources/views/employers/dialog.blade.php b/resources/views/employers/dialog.blade.php index 6c0800b..7e4e4f6 100644 --- a/resources/views/employers/dialog.blade.php +++ b/resources/views/employers/dialog.blade.php @@ -243,7 +243,7 @@
@if($it->text)
- @if($it->ad_employer_id > 0) + @if(\App\Models\Ad_employer::where('id', $it->ad_employer_id)->exists()) Отклик на вакансию "{{ \App\Models\Ad_employer::find($it->ad_employer_id)->name }}"
@if($it->text) Комментарий: {{ $it->text }} diff --git a/resources/views/employers/vacancy_autolift.blade.php b/resources/views/employers/vacancy_autolift.blade.php index 610d887..441bf76 100644 --- a/resources/views/employers/vacancy_autolift.blade.php +++ b/resources/views/employers/vacancy_autolift.blade.php @@ -3,7 +3,7 @@