Skip to content

Commit

Permalink
relax reverse lookup mandate
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay S authored and Akshay S committed Apr 17, 2024
1 parent ea0bc1e commit 0af55be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/router/src/db/mandate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ mod storage {
source: "mandate".to_string(),
updated_by: storage_scheme.to_string(),
};
self.insert_reverse_lookup(rev_lookup, storage_scheme)
.await?;
// dont fail request if reverse lookup entry fails, as it might be inserted during insert
let _ = self.insert_reverse_lookup(rev_lookup, storage_scheme)
.await;
}

let m_update = diesel_models::MandateUpdateInternal::from(mandate_update);
Expand Down

0 comments on commit 0af55be

Please sign in to comment.