Skip to content

Commit b38ea90

Browse files
committed
sum paid bytes provided only from account payments that have been completed
1 parent a7a53ca commit b38ea90

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

model/account_payment_model.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,8 @@ func GetTransferStats(
702702
0 AS unpaid_bytes_provided
703703
FROM account_payment
704704
WHERE
705-
account_payment.network_id = $1
705+
account_payment.network_id = $1 AND
706+
account_payment.completed = true
706707
`,
707708
networkId,
708709
)

0 commit comments

Comments
 (0)