diff --git a/src/Payment/Revenue.php b/src/Payment/Revenue.php index 733f8c3b..dbfd3424 100644 --- a/src/Payment/Revenue.php +++ b/src/Payment/Revenue.php @@ -185,7 +185,7 @@ class Revenue { $limit = max(1, min(500, $limit)); $ids = $wpdb->get_col($wpdb->prepare( - "SELECT id FROM {$this->table()} WHERE status = %s AND created_at < %s ORDER BY id ASC LIMIT %d", + "SELECT id FROM {$this->table()} WHERE status = %s AND created_at <= %s ORDER BY id ASC LIMIT %d", 'pending', $cutoff, $limit