mirror of
https://gh.wpcy.net/https://github.com/hayBIT/freescout2ant.git
synced 2026-07-15 02:18:36 +08:00
The core bug was in CrmApiClient::archiveConversation() which returned a truthy error array on token failures, causing archiveConversationData() to mark threads as archived even though the CRM API was never called. Changes: - Return false (not error array) from archiveConversation() on token error - Add `last_error` column to crm_archive_threads to track failed archivals - Record failures in CrmArchiveThread so the cron can retry them - Update ArchiveThreads command to retry failed entries and skip disconnected users (no token file) - Wrap ArchiveThreadsJob in try-catch to track unexpected exceptions - Use CrmArchive as source for conversation IDs (more reliable) https://claude.ai/code/session_01Bvg33MSPkDhxo1LJ6kQBxu |
||
|---|---|---|
| .. | ||
| factories | ||
| Migrations | ||
| Seeders | ||