mirror of
https://github.com/RoboSats/taptrade-core.git
synced 2025-07-21 18:23:43 +00:00
set escrow ongoing 0 after decision
This commit is contained in:
@ -1021,7 +1021,7 @@ impl CoordinatorDB {
|
||||
|
||||
// set the winning robohash in the db
|
||||
pub async fn resolve_escrow(&self, offer_id: &str, winner_robohash: &str) -> Result<()> {
|
||||
sqlx::query("UPDATE taken_offers SET escrow_winner_robohash = ? WHERE offer_id = ?")
|
||||
sqlx::query("UPDATE taken_offers SET escrow_ongoing = 0, escrow_winner_robohash = ? WHERE offer_id = ?")
|
||||
.bind(winner_robohash)
|
||||
.bind(offer_id)
|
||||
.execute(&*self.db_pool)
|
||||
|
Reference in New Issue
Block a user