refactor: elimina phone_number_id y display_phone del formulario de empresa

- El número WA Business es global (configuración general), no por empresa
- OutboundWorker usa fallback a WHATSAPP_DEFAULT_PHONE_NUMBER_ID si la empresa no tiene
- CompanyRepository::save() ya no requiere phone_number_id
- phone_number_id permite DEFAULT '' en schema

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-19 22:19:05 -05:00
co-authored by Claude Sonnet 4.6
parent 2632eff3fb
commit ea7560f9bf
4 changed files with 4 additions and 17 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ class OutboundWorker
return ['success' => false, 'error' => 'Payload inválido'];
}
$phoneNumberId = $item['phone_number_id'];
$phoneNumberId = $item['phone_number_id'] ?: env('WHATSAPP_DEFAULT_PHONE_NUMBER_ID', '');
$type = $item['message_type'];
$to = $item['to_number'];