diff --git a/REST/index.php b/REST/index.php index 09a9e75c..e734feb3 100644 --- a/REST/index.php +++ b/REST/index.php @@ -46,7 +46,7 @@ switch ($_GET["action"]) { WHERE p.active = 1 AND p.deleted = 0 AND p.date_modified > '$sixMonthsAgo' - AND (p.exportedAt IS NULL OR p.exportedAt > '$sinceDate') + AND (p.exportedAt IS NULL OR p.exportedAt < '$sinceDate') GROUP BY p.id, p.name, p.code "; $r = $db->query($query);