This commit is contained in:
Lizandro Guarnizo
2026-06-16 11:07:24 -05:00
parent 6a8a8e0826
commit ea40cf8dae
2 changed files with 52 additions and 11 deletions
+2 -2
View File
@@ -121,8 +121,8 @@ try {
// Crear o recuperar estado de cada consentimiento requerido
$stmtCreateConsent = $pdo->prepare(
"INSERT IGNORE INTO turnero_consentimientos (turno_id, formulario_id, estado, creado_at)
VALUES (?, ?, 'pendiente', NOW())"
"INSERT IGNORE INTO turnero_consentimientos (turno_id, formulario_id, token, estado)
VALUES (?, ?, UUID(), 'pendiente')"
);
foreach ($consentimientosRequeridos as &$c) {
$stmtCreateConsent->execute([$turnoId, $c['formulario_id']]);