<?php
require_once __DIR__.'/../includes/functions.php';
mj_automation_ensure_schema();
foreach(['listing_expiry','listing_auto_expire','listing_quality_reminder','listing_upgrade_suggestion','featured_sponsor_expiry'] as $k){
    $s = one('SELECT * FROM mj_automation_settings WHERE automation_key=?', [$k]);
    if ($s) { mj_automation_run_one($s, isset($_GET['force'])); }
}
echo 'Listing automation completed.';
