From 5766e37e71ecf2a4804cc4ebc0bcd54a2ad66fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Mon, 13 Jul 2026 07:56:13 +0300 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=D0=BD=D0=B5=20=D1=87=D0=B8=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=20=D1=81=D0=B2=D0=BE=D0=B9=D1=81=D1=82=D0=B2?= =?UTF-8?q?=D0=BE=20=D1=83=20=D0=BF=D1=83=D1=81=D1=82=D0=BE=D0=B9=20=D1=80?= =?UTF-8?q?=D0=B5=D0=BF=D0=BB=D0=B8=D0=BA=D0=B8=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D1=81=D0=B1=D0=BE=D1=80=D0=B5=20=D0=BF=D0=B8=D1=81=D1=8C=D0=BC?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- app/app/Jobs/Bot/ProcessChatMessageJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app/Jobs/Bot/ProcessChatMessageJob.php b/app/app/Jobs/Bot/ProcessChatMessageJob.php index 75bf1514..e5269dd6 100644 --- a/app/app/Jobs/Bot/ProcessChatMessageJob.php +++ b/app/app/Jobs/Bot/ProcessChatMessageJob.php @@ -120,8 +120,8 @@ class ProcessChatMessageJob implements ShouldQueue ->all(); $client = $rows->firstWhere(fn (BotDialog $d) => $d->direction === 'in'); - $source = (string) ($client->source ?? 'portal'); - $userId = $client->user_id !== null ? (int) $client->user_id : null; + $source = (string) ($client?->source ?? 'portal'); + $userId = $client?->user_id !== null ? (int) $client?->user_id : null; $to = (string) config('services.support.email'); if ($to !== '') {