feat: remove delete fns for quotes (#1122)

This commit is contained in:
thesimplekid
2025-09-26 14:37:43 +01:00
committed by GitHub
parent f48660f344
commit 05acb914fe
3 changed files with 2 additions and 59 deletions

View File

@@ -878,14 +878,6 @@ VALUES (:quote_id, :amount, :timestamp);
Ok(())
}
async fn remove_mint_quote(&mut self, quote_id: &QuoteId) -> Result<(), Self::Err> {
query(r#"DELETE FROM mint_quote WHERE id=:id"#)?
.bind("id", quote_id.to_string())
.execute(&self.inner)
.await?;
Ok(())
}
async fn add_melt_quote(&mut self, quote: mint::MeltQuote) -> Result<(), Self::Err> {
// Now insert the new quote
query(
@@ -1020,20 +1012,6 @@ VALUES (:quote_id, :amount, :timestamp);
Ok((old_state, quote))
}
async fn remove_melt_quote(&mut self, quote_id: &QuoteId) -> Result<(), Self::Err> {
query(
r#"
DELETE FROM melt_quote
WHERE id=:id
"#,
)?
.bind("id", quote_id.to_string())
.execute(&self.inner)
.await?;
Ok(())
}
async fn get_mint_quote(&mut self, quote_id: &QuoteId) -> Result<Option<MintQuote>, Self::Err> {
let payments = get_mint_quote_payments(&self.inner, quote_id).await?;
let issuance = get_mint_quote_issuance(&self.inner, quote_id).await?;