summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-20 16:24:41 +0200
committerFlorian Dold <florian@dold.me>2021-05-20 16:24:41 +0200
commit6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4 (patch)
treedb7e785017f30ccff5371592695ae10d92612d16 /packages/taler-wallet-core/src/db.ts
parent1fb182700252675eb89bfef5c27637e8396f1258 (diff)
downloadwallet-core-6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4.tar.gz
wallet-core-6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4.tar.bz2
wallet-core-6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4.zip
implement deletion of withdrawal transactions
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 52fe5c3dc..609f43ea1 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -25,7 +25,6 @@ import {
MerchantInfo,
Product,
RefreshReason,
- ReserveTransaction,
TalerErrorDetails,
Timestamp,
} from "@gnu-taler/taler-util";
@@ -1783,7 +1782,7 @@ class AuditorTrustStore extends Store<"auditorTrust", AuditorTrustRecord> {
class ExchangeTrustStore extends Store<"exchangeTrust", ExchangeTrustRecord> {
constructor() {
super("exchangeTrust", {
- keyPath: ["currency", "exchangeBaseUrl", "exchangePub"],
+ keyPath: ["currency", "exchangeBaseUrl", "exchangeMasterPub"],
});
}
exchangeMasterPubIndex = new Index<
@@ -1791,7 +1790,7 @@ class ExchangeTrustStore extends Store<"exchangeTrust", ExchangeTrustRecord> {
"exchangeMasterPubIndex",
string,
ExchangeTrustRecord
- >(this, "exchangeMasterPubIndex", "exchangePub");
+ >(this, "exchangeMasterPubIndex", "exchangeMasterPub");
uidIndex = new Index<
"exchangeTrust",
"uidIndex",
@@ -1810,6 +1809,12 @@ class ReservesStore extends Store<"reserves", ReserveRecord> {
constructor() {
super("reserves", { keyPath: "reservePub" });
}
+ byInitialWithdrawalGroupId = new Index<
+ "reserves",
+ "initialWithdrawalGroupIdIndex",
+ string,
+ ReserveRecord
+ >(this, "initialWithdrawalGroupIdIndex", "initialWithdrawalGroupId");
}
class TipsStore extends Store<"tips", TipRecord> {