1
0

Fix revenue route incorrect filter (and commit bank transaction) (#3874)

* Fix revenue route incorrect filtering

* Actually commit transaction
This commit is contained in:
Jai Agrawal
2025-06-30 14:45:23 -07:00
committed by GitHub
parent bcec478a64
commit 33d26238ce
3 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT created, SUM(amount) sum\n FROM payouts_values\n WHERE date_available BETWEEN $1 AND $2\n GROUP BY created\n ORDER BY created DESC\n ",
"query": "\n SELECT created, SUM(amount) sum\n FROM payouts_values\n WHERE created BETWEEN $1 AND $2\n GROUP BY created\n ORDER BY created DESC\n ",
"describe": {
"columns": [
{
@@ -25,5 +25,5 @@
null
]
},
"hash": "3a2ad5a5bd6c1c6e7cee467759633da038d74c6d41f55ae7f23fd1f04e577bdf"
"hash": "652a5765bda0b78034a291e382a063126529d91f308cbafed2c6e635a3013b30"
}

View File

@@ -1128,5 +1128,7 @@ pub async fn insert_bank_balances(
.execute(&mut *transaction)
.await?;
transaction.commit().await?;
Ok(())
}

View File

@@ -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
",