[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: reset deposit lastError
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: reset deposit lastError |
Date: |
Sat, 07 Aug 2021 18:19:10 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new fb0f8043 reset deposit lastError
fb0f8043 is described below
commit fb0f8043ea55421bd6c845ce4d69788ed7524a03
Author: Florian Dold <florian@dold.me>
AuthorDate: Sat Aug 7 18:19:04 2021 +0200
reset deposit lastError
---
packages/taler-wallet-core/src/db.ts | 2 +-
packages/taler-wallet-core/src/operations/deposits.ts | 2 ++
packages/taler-wallet-core/src/pending-types.ts | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-core/src/db.ts
b/packages/taler-wallet-core/src/db.ts
index 0bb8db17..437d2e7b 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -1685,7 +1685,7 @@ export interface DepositGroupRecord {
/**
* Retry info.
*/
- retryInfo: RetryInfo;
+ retryInfo?: RetryInfo;
}
/**
diff --git a/packages/taler-wallet-core/src/operations/deposits.ts
b/packages/taler-wallet-core/src/operations/deposits.ts
index 179c0b13..c6c80ce9 100644
--- a/packages/taler-wallet-core/src/operations/deposits.ts
+++ b/packages/taler-wallet-core/src/operations/deposits.ts
@@ -255,6 +255,8 @@ async function processDepositGroupImpl(
}
if (allDeposited) {
dg.timestampFinished = getTimestampNow();
+ delete dg.lastError;
+ delete dg.retryInfo;
await tx.depositGroups.put(dg);
}
});
diff --git a/packages/taler-wallet-core/src/pending-types.ts
b/packages/taler-wallet-core/src/pending-types.ts
index 505220e7..5033163a 100644
--- a/packages/taler-wallet-core/src/pending-types.ts
+++ b/packages/taler-wallet-core/src/pending-types.ts
@@ -209,7 +209,7 @@ export interface PendingWithdrawTask {
export interface PendingDepositTask {
type: PendingTaskType.Deposit;
lastError: TalerErrorDetails | undefined;
- retryInfo: RetryInfo;
+ retryInfo: RetryInfo | undefined;
depositGroupId: string;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: reset deposit lastError,
gnunet <=