From 8739515834b210e3a05fc2843dedbb07ea28fede Mon Sep 17 00:00:00 2001 From: boufni95 Date: Fri, 14 Mar 2025 20:07:26 +0000 Subject: [PATCH] race cond --- src/services/storage/paymentStorage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/storage/paymentStorage.ts b/src/services/storage/paymentStorage.ts index 821b049b..f3a7ce27 100644 --- a/src/services/storage/paymentStorage.ts +++ b/src/services/storage/paymentStorage.ts @@ -127,7 +127,7 @@ export default class { } async AddPendingExternalPayment(userId: string, invoice: string, amounts: { payAmount: number, serviceFee: number, networkFee: number }, linkedApplication: Application, liquidityProvider: string | undefined, txId: string, debitNpub?: string): Promise { - const user = await this.userStorage.GetUser(userId) + const user = await this.userStorage.GetUser(userId, txId) return this.dbs.CreateAndSave('UserInvoicePayment', { user, paid_amount: amounts.payAmount,