-fix pending operation

This commit is contained in:
Florian Dold 2023-02-20 04:23:53 +01:00
parent 2626ed6ad0
commit c022f39428
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 1 additions and 5 deletions

View File

@ -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;

View File

@ -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);