fix(payment): settle income at cycle boundary
This commit is contained in:
1 parent
e8e39c1ef3
commit
73216ee6e5
1 file changed
+1
-1
@@ -185,7 +185,7 @@ class Revenue {
|
|||||||
|
|
||||||
$limit = max(1, min(500, $limit));
|
$limit = max(1, min(500, $limit));
|
||||||
$ids = $wpdb->get_col($wpdb->prepare(
|
$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',
|
'pending',
|
||||||
$cutoff,
|
$cutoff,
|
||||||
$limit
|
$limit
|
||||||
|
|||||||
Reference in new issue
Block a user