From d5c1a3478eadd6667728fe32b67879a71b8d135f Mon Sep 17 00:00:00 2001 From: boufni95 Date: Fri, 28 Nov 2025 16:29:51 +0000 Subject: [PATCH] fix --- src/services/main/paymentManager.ts | 1 - src/services/storage/paymentStorage.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/services/main/paymentManager.ts b/src/services/main/paymentManager.ts index b315b170..50bb01e0 100644 --- a/src/services/main/paymentManager.ts +++ b/src/services/main/paymentManager.ts @@ -408,7 +408,6 @@ export default class { const app = await this.storage.applicationStorage.GetApplication(ctx.app_id) const isAppUserPayment = ctx.user_id !== app.owner.user_id const serviceFee = this.getSendServiceFee(Types.UserOperationType.OUTGOING_INVOICE, decoded.numSatoshis, isAppUserPayment) - // const routingFeeLimit = this.lnd.GetFeeLimitAmount(decoded.numSatoshis) const newSwap = await this.storage.paymentStorage.AddTransactionSwap({ app_user_id: ctx.app_user_id, swap_quote_id: res.createdResponse.id, diff --git a/src/services/storage/paymentStorage.ts b/src/services/storage/paymentStorage.ts index 0ff4410f..357ee7aa 100644 --- a/src/services/storage/paymentStorage.ts +++ b/src/services/storage/paymentStorage.ts @@ -467,7 +467,7 @@ export default class { } async GetTransactionSwap(swapOperationId: string, txId?: string) { - return this.dbs.FindOne('TransactionSwap', { where: { swap_operation_id: swapOperationId } }, txId) + return this.dbs.FindOne('TransactionSwap', { where: { swap_operation_id: swapOperationId, used: false } }, txId) } async FinalizeTransactionSwap(swapOperationId: string, txId: string) {