Update: 2026-07-05 18:46:09

This commit is contained in:
Hamza-Ayed
2026-07-05 18:46:09 +03:00
parent e23c96dc9d
commit 40ffcabc91
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ try {
// 3. Automated Campaigns / Surge Tracking (If applicable in logs)
$sqlCampaigns = "SELECT COUNT(*) as count FROM marketing_campaigns_log
WHERE JSON_EXTRACT(target_criteria, '$.country_code') = :country
WHERE country_code = :country
AND sent_at >= DATE_SUB(NOW(), INTERVAL 7 DAY)";
$stmtCampaigns = $con->prepare($sqlCampaigns);
$stmtCampaigns->execute([':country' => $countryCode]);