libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 9d4f2e889eed5ab35ed11b9629c72bedf940daf3
parent 9046bc648dc0e4764c6d86af32dc1e27c7de43df
Author: Antoine A <>
Date:   Wed, 16 Sep 2026 10:01:59 +0200

common: fixes

Diffstat:
Mlibeufin-bank/src/db/gc.rs | 2+-
Mlibeufin-ebisync/src/api.rs | 24++++++++++++------------
2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/libeufin-bank/src/db/gc.rs b/libeufin-bank/src/db/gc.rs @@ -33,7 +33,7 @@ pub async fn collect( // Abort pending operations sqlx::query( " - UPDATE taler_withdrawal_operations SET aborted = true WHERE creation_date < $1 AND NOT EXISTS( + UPDATE taler_withdrawal_operations SET aborted = true WHERE creation_date < $1 AND NOT confirmation_done AND NOT EXISTS( SELECT FROM prepared_transfers WHERE prepared_transfers.withdrawal_id=taler_withdrawal_operations.withdrawal_id ) " diff --git a/libeufin-ebisync/src/api.rs b/libeufin-ebisync/src/api.rs @@ -93,17 +93,6 @@ pub struct SyncSubmit { pub fn sync_api(state: Arc<EbisyncState>, spa: &str, auth: AuthMethod) -> Router { Router::new() - .route( - "/config", - get(async || { - Json(Config { - name: (), - version: LibtoolVersion::new(0, 0, 0), - implementation: Some("urn:net:taler:specs:libeufin-ebbisync:taler-rust"), - spa_version: long_version(), - }) - }), - ) .nest_service("/webui/", ServeDir::new(spa)) .route("/", get(async || Redirect::permanent("/webui/"))) .route( @@ -215,5 +204,16 @@ pub fn sync_api(state: Arc<EbisyncState>, spa: &str, auth: AuthMethod) -> Router ), ) .with_state(state) - .auth(auth, "realm") + .auth(auth, "ebisync") + .route( + "/config", + get(async || { + Json(Config { + name: (), + version: LibtoolVersion::new(0, 0, 0), + implementation: Some("urn:net:taler:specs:libeufin-ebbisync:taler-rust"), + spa_version: long_version(), + }) + }), + ) }