-fix pending operation
This commit is contained in:
parent
2626ed6ad0
commit
c022f39428
@ -442,7 +442,7 @@ async function gatherPeerPushCreditPending(
|
||||
): Promise<void> {
|
||||
await tx.peerPushPaymentIncoming.iter().forEachAsync(async (pi) => {
|
||||
switch (pi.status) {
|
||||
case PeerPushPaymentIncomingStatus.Accepted:
|
||||
case PeerPushPaymentIncomingStatus.Proposed:
|
||||
return;
|
||||
case PeerPushPaymentIncomingStatus.WithdrawalCreated:
|
||||
return;
|
||||
|
@ -1432,10 +1432,6 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
|
||||
const req = codecForCheckPeerPushDebitRequest().decode(payload);
|
||||
return await checkPeerPushDebit(ws, req);
|
||||
}
|
||||
case WalletApiOperation.PreparePeerPushCredit: {
|
||||
const req = codecForPreparePeerPushCreditRequest().decode(payload);
|
||||
return await preparePeerPushCredit(ws, req);
|
||||
}
|
||||
case WalletApiOperation.InitiatePeerPushDebit: {
|
||||
const req = codecForInitiatePeerPushPaymentRequest().decode(payload);
|
||||
return await initiatePeerPushPayment(ws, req);
|
||||
|
Loading…
Reference in New Issue
Block a user