reset deposit lastError

This commit is contained in:
Florian Dold 2021-08-07 18:19:04 +02:00
parent f40593185a
commit fb0f8043ea
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 4 additions and 2 deletions

View File

@ -1685,7 +1685,7 @@ export interface DepositGroupRecord {
/**
* Retry info.
*/
retryInfo: RetryInfo;
retryInfo?: RetryInfo;
}
/**

View File

@ -255,6 +255,8 @@ async function processDepositGroupImpl(
}
if (allDeposited) {
dg.timestampFinished = getTimestampNow();
delete dg.lastError;
delete dg.retryInfo;
await tx.depositGroups.put(dg);
}
});

View File

@ -209,7 +209,7 @@ export interface PendingWithdrawTask {
export interface PendingDepositTask {
type: PendingTaskType.Deposit;
lastError: TalerErrorDetails | undefined;
retryInfo: RetryInfo;
retryInfo: RetryInfo | undefined;
depositGroupId: string;
}