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,