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