Skip to content

Commit

Permalink
fix: update cached queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Sep 27, 2024
1 parent 7dc6c2e commit 5bd24bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions moksha-wallet/src/localstore/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl LocalStore for SqliteLocalStore {
&self,
tx: &mut sqlx::Transaction<Self::DB>,
) -> Result<Proofs, MokshaWalletError> {
let rows = sqlx::query!("SELECT keyset_id, amount as Integer, C, secret FROM proofs;")
let rows = sqlx::query!("SELECT keyset_id, amount, C, secret FROM proofs;")
.fetch_all(&mut **tx)
.await?;

Expand Down Expand Up @@ -114,9 +114,9 @@ impl LocalStore for SqliteLocalStore {
&self,
tx: &mut sqlx::Transaction<Self::DB>,
) -> Result<Vec<WalletKeyset>, MokshaWalletError> {
let rows = sqlx::query!("SELECT id as Integer, mint_url, keyset_id, currency_unit, active, last_index, public_keys FROM keysets;")
let rows = sqlx::query!("SELECT id, mint_url, keyset_id, currency_unit, active, last_index, public_keys FROM keysets;")
.fetch_all(&mut **tx)
.await?;
.await?;

Ok(rows
.iter()
Expand Down

0 comments on commit 5bd24bc

Please sign in to comment.