mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-19 13:44:55 +01:00
Fix get_mint_quote_by_request_lookup_id
Fixes #916 The two functions (read and transaction) got out of sync
This commit is contained in:
@@ -985,12 +985,12 @@ impl MintQuotesDatabase for MintSqliteDatabase {
|
||||
request_lookup_id_kind
|
||||
FROM
|
||||
mint_quote
|
||||
WHERE request_lookup_id = :request_lookup_id"#,
|
||||
)
|
||||
.bind(
|
||||
":request_lookup_id",
|
||||
serde_json::to_string(request_lookup_id)?,
|
||||
WHERE request_lookup_id = :request_lookup_id
|
||||
AND request_lookup_id_kind = :request_lookup_id_kind
|
||||
"#,
|
||||
)
|
||||
.bind(":request_lookup_id", request_lookup_id.to_string())
|
||||
.bind(":request_lookup_id_kind", request_lookup_id.kind())
|
||||
.fetch_one(&self.pool)
|
||||
.await?
|
||||
.map(|row| sqlite_row_to_mint_quote(row, vec![], vec![]))
|
||||
|
||||
Reference in New Issue
Block a user