Fixed api

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2021-04-19 18:07:52 +02:00
parent 83a52ecbe3
commit d11bf9de20

View file

@ -134,7 +134,7 @@ else if ($action == "get-job" && isset($_POST["status"]) && $_POST["status"] !=
get_lock($con);
$sql = "SELECT id FROM tile WHERE status_id = (SELECT id FROM status WHERE name = ?) ORDER BY parent_id LIMIT 1";
$stmt = $con->prepare($sql);
$stmt->bind_param("s", $_POST["type"]);
$stmt->bind_param("s", $_POST["status"]);
$stmt->execute();
$result = $stmt->get_result();
$stmt->close();