mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-20 12:35:44 +01:00
fix: reset quote status
This commit is contained in:
@@ -278,12 +278,20 @@ impl Mint {
|
||||
|
||||
match state {
|
||||
MintQuoteState::Unpaid => {
|
||||
let _state = self
|
||||
.localstore
|
||||
.update_mint_quote_state(&mint_request.quote, MintQuoteState::Unpaid)
|
||||
.await?;
|
||||
return Err(Error::UnpaidQuote);
|
||||
}
|
||||
MintQuoteState::Pending => {
|
||||
return Err(Error::PendingQuote);
|
||||
}
|
||||
MintQuoteState::Issued => {
|
||||
let _state = self
|
||||
.localstore
|
||||
.update_mint_quote_state(&mint_request.quote, MintQuoteState::Issued)
|
||||
.await?;
|
||||
return Err(Error::IssuedQuote);
|
||||
}
|
||||
MintQuoteState::Paid => (),
|
||||
|
||||
Reference in New Issue
Block a user