Skip to content

Commit

Permalink
feat: update db query (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmeanAsad committed Aug 23, 2023
1 parent 503a6b3 commit 8ba2fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ pub async fn get_payment_records(date: &str) -> Result<PayoutRecords, Error> {
"
SELECT
fil_wallet_address, sum(fil_earned)
FROM payment_aggregation
FROM payments
INNER JOIN
nodes on payment_aggregation.node_id = nodes.id
nodes on payments.node_id = nodes.id
AND core = false
AND banned_at is NULL
AND status = 'paid'
Expand Down

0 comments on commit 8ba2fe0

Please sign in to comment.