create_turno: corregir params plantilla (solo {{1}}=código) + fix debug test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-03 10:09:52 -05:00
co-authored by Claude Sonnet 4.6
parent 707ef24572
commit 1a92707e3e
2 changed files with 10 additions and 12 deletions
+2 -1
View File
@@ -183,11 +183,12 @@ try {
$nombreWA = $pacienteNombre ?: 'Paciente';
try {
$wa = new WhatsAppService('turnero');
// La plantilla solo tiene {{1}} = código de turno en el body + botón URL
$wa->sendTemplateMessage(
$cel,
$waTemplate,
$waLang,
[$nombreWA, $formularioNomWA ?: $codigo, $codigo],
[$codigo],
$enlaceConsentimiento ? [$enlaceConsentimiento] : []
);
} catch (\Throwable $eTmpl) {