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 @@