reset deposit lastError
This commit is contained in:
parent
f40593185a
commit
fb0f8043ea
@ -1685,7 +1685,7 @@ export interface DepositGroupRecord {
|
|||||||
/**
|
/**
|
||||||
* Retry info.
|
* Retry info.
|
||||||
*/
|
*/
|
||||||
retryInfo: RetryInfo;
|
retryInfo?: RetryInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -255,6 +255,8 @@ async function processDepositGroupImpl(
|
|||||||
}
|
}
|
||||||
if (allDeposited) {
|
if (allDeposited) {
|
||||||
dg.timestampFinished = getTimestampNow();
|
dg.timestampFinished = getTimestampNow();
|
||||||
|
delete dg.lastError;
|
||||||
|
delete dg.retryInfo;
|
||||||
await tx.depositGroups.put(dg);
|
await tx.depositGroups.put(dg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -209,7 +209,7 @@ export interface PendingWithdrawTask {
|
|||||||
export interface PendingDepositTask {
|
export interface PendingDepositTask {
|
||||||
type: PendingTaskType.Deposit;
|
type: PendingTaskType.Deposit;
|
||||||
lastError: TalerErrorDetails | undefined;
|
lastError: TalerErrorDetails | undefined;
|
||||||
retryInfo: RetryInfo;
|
retryInfo: RetryInfo | undefined;
|
||||||
depositGroupId: string;
|
depositGroupId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user