feat(chat): журнал разговоров переезжает с Jivo на свой чат

jivo_chat_id -> chat_id + добавлены source/user_id/ip (спека
2026-07-13-own-chat-widget-design §5). Историческая миграция создания
таблицы не тронута.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Дмитрий
2026-07-13 06:45:54 +03:00
parent 9cd12f179f
commit 197e771a4f
4 changed files with 57 additions and 9 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ it('наша часть тракта (без сети) укладывается
$latencies = [];
for ($i = 0; $i < 10; $i++) {
(new ProcessJivoMessageJob("chat-{$i}", 'c', 'что такое проект?'))->handle();
$latencies[] = (int) BotDialog::where('jivo_chat_id', "chat-{$i}")
$latencies[] = (int) BotDialog::where('chat_id', "chat-{$i}")
->where('direction', 'out')->value('latency_ms');
}