This commit is contained in:
Lizandro Guarnizo
2026-06-16 07:02:04 -05:00
parent 64f21b083a
commit 35b13468b6
5 changed files with 81 additions and 22 deletions
+4
View File
@@ -31,6 +31,10 @@ if ($stmt->rowCount() === 0) {
jsonError('El turno no está en estado en_recepcion o no existe.', 404);
}
// Notificar SSE para que las pantallas se actualicen inmediatamente
$stmtS = $pdo->prepare('UPDATE turnero_sesiones SET sse_ping_at = NOW() WHERE id = (SELECT sesion_id FROM turnero_turnos WHERE id = ?)');
$stmtS->execute([$turnoId]);
// Devolver el turno actualizado para que recepcion.php abra la ficha
$stmtT = $pdo->prepare(
"SELECT t.*,