Skip to content

Commit b1b29e9

Browse files
committed
Fixed unwrap on unknown result
1 parent b9a4ad9 commit b1b29e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/src/db_helpers.rs

+4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ pub async fn tx_was_deposited(
115115
.one(db)
116116
.await?;
117117

118+
if existing_tx.is_none() {
119+
return Ok(());
120+
}
121+
118122
// Into ActiveModel
119123
let mut existing_tx: events_tx::ActiveModel = existing_tx.unwrap().into();
120124

0 commit comments

Comments
 (0)