added not-yet-implemented and pretty

This commit is contained in:
Sebastian 2023-01-13 16:05:17 -03:00
parent e573c56873
commit bc67ff0c7f
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
3 changed files with 10 additions and 4 deletions

View File

@ -1227,6 +1227,8 @@ export async function abortTransaction(
await abortPay(ws, proposalId, forceImmediateAbort);
} else {
const unknownTxType: any = type;
throw Error(`can't abort a '${unknownTxType}' transaction`);
throw Error(
`can't abort a '${unknownTxType}' transaction: not yet implemented`,
);
}
}

View File

@ -38,7 +38,7 @@ export enum PendingTaskType {
Deposit = "deposit",
Backup = "backup",
PeerPushInitiation = "peer-push-initiation",
PeerPullInitiation = "peer-pull\-initiation",
PeerPullInitiation = "peer-pull-initiation",
}
/**

View File

@ -215,10 +215,14 @@ export namespace RetryTags {
export function byPaymentProposalId(proposalId: string): string {
return `${PendingTaskType.Purchase}:${proposalId}`;
}
export function byPeerPushPaymentInitiationPursePub(pursePub: string): string {
export function byPeerPushPaymentInitiationPursePub(
pursePub: string,
): string {
return `${PendingTaskType.PeerPushInitiation}:${pursePub}`;
}
export function byPeerPullPaymentInitiationPursePub(pursePub: string): string {
export function byPeerPullPaymentInitiationPursePub(
pursePub: string,
): string {
return `${PendingTaskType.PeerPullInitiation}:${pursePub}`;
}
}