Skip to content

Commit

Permalink
postgresql: commit add_claim tx
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Jan 27, 2025
1 parent b1fb25b commit d3154b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swapd/src/postgresql/claim_repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ impl claim::ClaimRepository for ClaimRepository {
.execute(&mut *db_tx)
.await?;

db_tx.commit().await?;
Ok(())
}

Expand All @@ -86,7 +87,7 @@ impl claim::ClaimRepository for ClaimRepository {
, r.fee_per_kw
, r.auto_bump
FROM claims r
WHERE tx_id IN (
WHERE r.tx_id IN (
SELECT ri.claim_tx_id
FROM claim_inputs ri
WHERE ri.tx_id NOT IN (
Expand Down

0 comments on commit d3154b0

Please sign in to comment.