fix: resetear toma limpia siguiente_toma_at y toma_inicio_at
Al olvidar una toma los tiempos del ciclo anterior quedaban en la DB, haciendo que al re-firmar la toma reseteada las demás aparecieran inmediatamente (sin countdown) y el profesional tuviera que firmar 3 veces en vez de 1. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
90d4e1bc49
commit
25bdf9aed2
@@ -32,7 +32,11 @@ foreach ($campos as $campo) {
|
||||
unset($dr[$campo]);
|
||||
}
|
||||
$pdo->prepare(
|
||||
"UPDATE turnero_consentimientos SET datos_respuestas=? WHERE token=?"
|
||||
"UPDATE turnero_consentimientos
|
||||
SET datos_respuestas = ?,
|
||||
siguiente_toma_at = NULL,
|
||||
toma_inicio_at = NULL
|
||||
WHERE token = ?"
|
||||
)->execute([json_encode($dr, JSON_UNESCAPED_UNICODE), $token]);
|
||||
|
||||
notificarSSE((int)$tc['sesion_id']);
|
||||
|
||||
Reference in New Issue
Block a user