fix(chat): не читать свойство у пустой реплики при сборе письма
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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 !== '') {
|
||||
|
||||
Reference in New Issue
Block a user