From ef4cc1a1ca568cf9e43964ca20bfc0b8c07a41e5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 19 Jan 2024 14:35:00 +0100 Subject: wallet-core: fix bugs.taler.net/n/7836 The test case for expired refunds now does more checks. A DB query bug for refund items was also fixed. --- packages/taler-wallet-core/src/db.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'packages/taler-wallet-core/src/db.ts') diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 73739c19c..f16600f5d 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -2217,6 +2217,7 @@ export enum RefundGroupStatus { Done = 0x0500_0000, Failed = 0x0501_0000, Aborted = 0x0503_0000, + Expired = 0x0502_0000, } /** @@ -2641,6 +2642,7 @@ export const WalletStoresV1 = { "coinPub", "rtxid", ]), + // FIXME: Why is this a list of index keys? Confusing! byRefundGroupId: describeIndex("byRefundGroupId", ["refundGroupId"]), }, ), @@ -2663,6 +2665,14 @@ export type WalletDbReadWriteTransaction< Stores extends StoreNames & string, > = DbReadWriteTransaction; +export type WalletDbReadWriteTransactionArr< + StoresArr extends Array>, +> = DbReadWriteTransactionArr; + +export type WalletDbReadOnlyTransactionArr< + StoresArr extends Array>, +> = DbReadOnlyTransactionArr; + /** * An applied migration. */ -- cgit v1.2.3