From c4746f08daa2d85ea7f55116e4958dfa1912b01f Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 4 Jul 2026 21:42:33 +0300 Subject: [PATCH] Update: 2026-07-04 21:42:33 --- backend/marketing_engine/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/marketing_engine/index.php b/backend/marketing_engine/index.php index 374f16f3..e381e924 100644 --- a/backend/marketing_engine/index.php +++ b/backend/marketing_engine/index.php @@ -27,10 +27,10 @@ try { switch ($action) { case 'get_task': $stmt = $con->prepare(" - SELECT id, type, target_url, content_text, media_url + SELECT id, type FROM marketing_tasks - WHERE status = 'pending' AND platform = ? AND (scheduled_at IS NULL OR scheduled_at <= NOW()) - ORDER BY created_at ASC LIMIT 1 + WHERE status = 'pending' AND platform = ? + ORDER BY id ASC LIMIT 1 "); $stmt->execute([$platform]); $task = $stmt->fetch(PDO::FETCH_ASSOC);