aboutsummaryrefslogtreecommitdiff
path: root/src/controller/statistics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/statistics.rs')
-rw-r--r--src/controller/statistics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller/statistics.rs b/src/controller/statistics.rs
index e57e2be..a546c67 100644
--- a/src/controller/statistics.rs
+++ b/src/controller/statistics.rs
@@ -8,9 +8,9 @@ use crate::db;
use crate::templates;
pub async fn get(wallet: &Wallet) -> Response<Full<Bytes>> {
- let categories = db::categories::list(&wallet.pool).await;
- let payments = db::payments::list_for_stats(&wallet.pool).await;
- let incomes = db::incomes::total_each_month(&wallet.pool).await;
+ let categories = db::categories::list(&wallet.db_conn).await;
+ let payments = db::payments::list_for_stats(&wallet.db_conn).await;
+ let incomes = db::incomes::total_each_month(&wallet.db_conn).await;
let context = minijinja::context!(
header => templates::Header::Statistics,