Files
Siro/backend/marketing_engine/insert_test_task.php
T

12 lines
459 B
PHP

<?php
require_once __DIR__ . '/../core/bootstrap.php';
$con = Database::get('main');
// Insert into marketing_tasks
$con->query("INSERT INTO marketing_tasks (platform, type, status) VALUES ('facebook', 'read_posts', 'pending')");
// Also insert into social_tasks just in case they hit the old endpoint
$con->query("INSERT INTO social_tasks (platform, type, status) VALUES ('facebook', 'read_posts', 'pending')");
echo "Test task inserted successfully!\n";