taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 566248aec417f6653e6245b96312f187517f0cdd
parent ae818df3bff18bc1517107f3728df65daafd3b20
Author: Florian Dold <florian@dold.me>
Date:   Wed,  2 Nov 2022 18:31:05 +0100

wallet-core: add byStatus indices for peer payment object stores

Diffstat:
Mpackages/taler-wallet-core/src/db.ts | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts @@ -2089,6 +2089,7 @@ export const WalletStoresV1 = { "exchangeBaseUrl", "pursePub", ]), + byStatus: describeIndex("byStatus", "status"), }, ), peerPullPaymentIncoming: describeStore( @@ -2101,6 +2102,7 @@ export const WalletStoresV1 = { "exchangeBaseUrl", "pursePub", ]), + byStatus: describeIndex("byStatus", "status"), }, ), peerPullPaymentInitiations: describeStore( @@ -2108,14 +2110,18 @@ export const WalletStoresV1 = { describeContents<PeerPullPaymentInitiationRecord>({ keyPath: "pursePub", }), - {}, + { + byStatus: describeIndex("byStatus", "status"), + }, ), peerPushPaymentInitiations: describeStore( "peerPushPaymentInitiations", describeContents<PeerPushPaymentInitiationRecord>({ keyPath: "pursePub", }), - {}, + { + byStatus: describeIndex("byStatus", "status"), + }, ), bankAccounts: describeStore( "bankAccounts",