fix(payment): settle income at cycle boundary
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user