diff options
author | Florian Dold <florian@dold.me> | 2022-11-02 18:31:05 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-02 18:31:05 +0100 |
commit | 566248aec417f6653e6245b96312f187517f0cdd (patch) | |
tree | 432103ad7f683368e8c043e53735122c1845cac4 | |
parent | ae818df3bff18bc1517107f3728df65daafd3b20 (diff) |
wallet-core: add byStatus indices for peer payment object stores
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 0b27b82dd..3716a45dc 100644 --- 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", |