You've already forked AstralRinth
forked from didirus/AstralRinth
Fix revenue route incorrect filter (and commit bank transaction) (#3874)
* Fix revenue route incorrect filtering * Actually commit transaction
This commit is contained in:
@@ -1128,5 +1128,7 @@ pub async fn insert_bank_balances(
|
||||
.execute(&mut *transaction)
|
||||
.await?;
|
||||
|
||||
transaction.commit().await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -903,7 +903,7 @@ pub async fn platform_revenue(
|
||||
"
|
||||
SELECT created, SUM(amount) sum
|
||||
FROM payouts_values
|
||||
WHERE date_available BETWEEN $1 AND $2
|
||||
WHERE created BETWEEN $1 AND $2
|
||||
GROUP BY created
|
||||
ORDER BY created DESC
|
||||
",
|
||||
|
||||
Reference in New Issue
Block a user