Lizandro GuarnizoandClaude Sonnet 4.6 838cc651b2 fix: repair ErpSync upsert — no duplicate key + preserve config_json
- Added UNIQUE KEY on companies.name in DB so ON DUPLICATE KEY UPDATE
  actually fires instead of always inserting
- Removed config_json and phone_number_id from upsert: those hold
  admin-configured bot data and should never be overwritten by ERP sync
- Skip placeholder API key to avoid sending a fake Bearer token
- Improved error reporting: curl errors, raw response preview, per-company
  error labels

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 17:44:31 -05:00
2026-06-12 12:18:21 -05:00
2026-06-12 12:18:21 -05:00
2026-06-12 12:18:21 -05:00
S
Description
No description provided
3.7 MiB
Languages
PHP 87.5%
HTML 10.7%
CSS 1.6%
JavaScript 0.1%