From 79341a7423acd7f1934df9882f4571aa8372c135 Mon Sep 17 00:00:00 2001 From: vindard <17693119+vindard@users.noreply.github.com> Date: Mon, 6 May 2024 10:52:33 -0400 Subject: [PATCH] chore(core): remove unused ln payment types --- core/api/src/domain/bitcoin/lightning/errors.ts | 2 -- core/api/src/graphql/error-map.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/core/api/src/domain/bitcoin/lightning/errors.ts b/core/api/src/domain/bitcoin/lightning/errors.ts index 0f8ab8fd23..561ebefbe5 100644 --- a/core/api/src/domain/bitcoin/lightning/errors.ts +++ b/core/api/src/domain/bitcoin/lightning/errors.ts @@ -20,8 +20,6 @@ export class SecretDoesNotMatchAnyExistingHodlInvoiceError extends LightningServ export class InvoiceNotFoundError extends LightningServiceError {} export class InvoiceAlreadySettledError extends LightningServiceError {} -export class LnPaymentPendingError extends LightningServiceError {} -export class LnAlreadyPaidError extends LightningServiceError {} export class MaxFeeTooLargeForRoutelessPaymentError extends LightningServiceError { level = ErrorLevel.Critical } diff --git a/core/api/src/graphql/error-map.ts b/core/api/src/graphql/error-map.ts index 6b5852c404..52bef7673f 100644 --- a/core/api/src/graphql/error-map.ts +++ b/core/api/src/graphql/error-map.ts @@ -563,8 +563,6 @@ export const mapError = (error: ApplicationError): CustomGraphQLError => { case "InvoiceNotFoundError": case "InvoiceAlreadySettledError": case "InvoiceNotPaidError": - case "LnPaymentPendingError": - case "LnAlreadyPaidError": case "PaymentNotFoundError": case "OperationInterruptedError": case "InconsistentDataError":