diff options
author | Joris | 2025-01-31 23:30:30 +0100 |
---|---|---|
committer | Joris | 2025-01-31 23:30:30 +0100 |
commit | 877f64b33adf32cf8495d1364d184055aab8089c (patch) | |
tree | 4e6414bf5ec4726a10faa4fe3ac66e4ffac6c04b /src/controller/payments.rs | |
parent | 0adf5a093494bdb7f5d5c0f12913133e333ddfad (diff) |
Migrate to tokio_rusqlite
Diffstat (limited to 'src/controller/payments.rs')
-rw-r--r-- | src/controller/payments.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/controller/payments.rs b/src/controller/payments.rs index 1ffa09f..3fa85a5 100644 --- a/src/controller/payments.rs +++ b/src/controller/payments.rs @@ -92,7 +92,9 @@ pub async fn create( match validation::payment::create(&form) { Some(create_payment) => { - match db::payments::create(&wallet.db_conn, create_payment.clone()).await { + match db::payments::create(&wallet.db_conn, create_payment.clone()) + .await + { Some(id) => { let row = db::payments::get_row( &wallet.db_conn, @@ -234,7 +236,8 @@ pub async fn search_category( wallet: &Wallet, query: queries::PaymentCategory, ) -> Response<Full<Bytes>> { - match db::payments::search_category(&wallet.db_conn, query.payment_name).await + match db::payments::search_category(&wallet.db_conn, query.payment_name) + .await { Some(category_id) => utils::with_headers( Response::new(format!("{}", category_id).into()), |