From 5bd24bcd1535a26fd5325644569694fc927181df Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Fri, 27 Sep 2024 11:42:24 +0200 Subject: [PATCH] fix: update cached queries --- ...629ef99ebb746875208743b9fc168fa8cffd848b671014b8bf1.json | 2 +- ...9756b504ef93f9d0a41bca0c9c0eece9ec91a50195412d9adae.json | 4 ++-- moksha-wallet/src/localstore/sqlite.rs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/moksha-wallet/.sqlx/query-1aa7a37640cde629ef99ebb746875208743b9fc168fa8cffd848b671014b8bf1.json b/moksha-wallet/.sqlx/query-1aa7a37640cde629ef99ebb746875208743b9fc168fa8cffd848b671014b8bf1.json index 3811e9b7..764d612e 100644 --- a/moksha-wallet/.sqlx/query-1aa7a37640cde629ef99ebb746875208743b9fc168fa8cffd848b671014b8bf1.json +++ b/moksha-wallet/.sqlx/query-1aa7a37640cde629ef99ebb746875208743b9fc168fa8cffd848b671014b8bf1.json @@ -11,7 +11,7 @@ { "name": "amount", "ordinal": 1, - "type_info": "Int64" + "type_info": "Integer" }, { "name": "C", diff --git a/moksha-wallet/.sqlx/query-609877b640a209756b504ef93f9d0a41bca0c9c0eece9ec91a50195412d9adae.json b/moksha-wallet/.sqlx/query-609877b640a209756b504ef93f9d0a41bca0c9c0eece9ec91a50195412d9adae.json index a78fb2d9..2d5f9b85 100644 --- a/moksha-wallet/.sqlx/query-609877b640a209756b504ef93f9d0a41bca0c9c0eece9ec91a50195412d9adae.json +++ b/moksha-wallet/.sqlx/query-609877b640a209756b504ef93f9d0a41bca0c9c0eece9ec91a50195412d9adae.json @@ -6,7 +6,7 @@ { "name": "id", "ordinal": 0, - "type_info": "Int64" + "type_info": "Integer" }, { "name": "mint_url", @@ -31,7 +31,7 @@ { "name": "last_index", "ordinal": 5, - "type_info": "Int64" + "type_info": "Integer" }, { "name": "public_keys", diff --git a/moksha-wallet/src/localstore/sqlite.rs b/moksha-wallet/src/localstore/sqlite.rs index ae784c3d..5ac15a18 100644 --- a/moksha-wallet/src/localstore/sqlite.rs +++ b/moksha-wallet/src/localstore/sqlite.rs @@ -73,7 +73,7 @@ impl LocalStore for SqliteLocalStore { &self, tx: &mut sqlx::Transaction, ) -> Result { - 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?; @@ -114,9 +114,9 @@ impl LocalStore for SqliteLocalStore { &self, tx: &mut sqlx::Transaction, ) -> Result, 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()