-fix method

This commit is contained in:
Florian Dold 2023-05-25 18:23:47 +02:00
parent a4112bae9e
commit 485f7d3603
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 5 additions and 0 deletions

View File

@ -374,6 +374,7 @@ async function processDownloadProposal(
}); });
const httpResponse = await ws.http.fetch(orderClaimUrl, { const httpResponse = await ws.http.fetch(orderClaimUrl, {
method: "POST",
body: requestBody, body: requestBody,
timeout: getProposalRequestTimeout(retryRecord?.retryInfo), timeout: getProposalRequestTimeout(retryRecord?.retryInfo),
}); });

View File

@ -74,6 +74,7 @@ import {
TombstoneTag, TombstoneTag,
} from "./common.js"; } from "./common.js";
import { import {
abortDepositGroup,
computeDepositTransactionStatus, computeDepositTransactionStatus,
processDepositGroup, processDepositGroup,
resumeDepositGroup, resumeDepositGroup,
@ -1682,6 +1683,9 @@ export async function abortTransaction(
await abortWithdrawalTransaction(ws, txId.withdrawalGroupId); await abortWithdrawalTransaction(ws, txId.withdrawalGroupId);
break; break;
} }
case TransactionType.Deposit:
await abortDepositGroup(ws, txId.depositGroupId);
break;
default: { default: {
const unknownTxType: any = txId.tag; const unknownTxType: any = txId.tag;
throw Error( throw Error(