This commit is contained in:
Lizandro Guarnizo
2026-06-16 08:53:28 -05:00
parent 42ccb1d436
commit cef40a7a43
4 changed files with 53 additions and 3 deletions
+2
View File
@@ -210,6 +210,7 @@ function siguienteTurnoEnCola(string $estado, ?int $lugarId = null): ?array
AND t.lugar_destino_id = ?
ORDER BY p.orden_peso ASC, t.creado_at ASC
LIMIT 1
FOR UPDATE
';
$stmt = $pdo->prepare($sql);
$stmt->execute([$estado, $lugarId]);
@@ -221,6 +222,7 @@ function siguienteTurnoEnCola(string $estado, ?int $lugarId = null): ?array
WHERE t.estado = ?
ORDER BY p.orden_peso ASC, t.creado_at ASC
LIMIT 1
FOR UPDATE
';
$stmt = $pdo->prepare($sql);
$stmt->execute([$estado]);