fix(payment): settle income at cycle boundary

This commit is contained in:
2026-08-07 16:27:53 +08:00
parent e8e39c1ef3
commit 73216ee6e5
+1 -1
View File
@@ -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