From 3e45e4ec90e5b77a73166aac372b0d241d6bc456 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Fri, 31 Oct 2025 19:37:21 +0000 Subject: [PATCH] disable new invoice check --- src/services/storage/paymentStorage.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/services/storage/paymentStorage.ts b/src/services/storage/paymentStorage.ts index 5f3d15a9..ef29957c 100644 --- a/src/services/storage/paymentStorage.ts +++ b/src/services/storage/paymentStorage.ts @@ -90,7 +90,7 @@ export default class { take }, txId); items.push(...firstBatch); - } + } const needMore = take - items.length // If need more, fetch higher paid_at_unix @@ -134,7 +134,7 @@ export default class { } async RemoveUserInvoices(userId: string, txId?: string) { - return this.dbs.Delete('UserReceivingInvoice', { user: { user_id: userId } }, txId) + return this.dbs.Delete('UserReceivingInvoice', { user: { user_id: userId } }, txId) } async GetAddressOwner(address: string, txId?: string): Promise { @@ -401,7 +401,7 @@ export default class { ]) const receivingTransactions = await Promise.all(receivingAddresses.map(addr => this.dbs.Find('AddressReceivingTransaction', { where: { user_address: { serial_id: addr.serial_id }, ...time } }))) - return { + return { receivingInvoices, receivingAddresses, receivingTransactions, outgoingInvoices, outgoingTransactions, userToUser @@ -419,8 +419,8 @@ export default class { async VerifyDbEvent(e: LoggedEvent) { switch (e.type) { - case "new_invoice": - return orFail(this.dbs.FindOne('UserReceivingInvoice', { where: { invoice: e.data, user: { user_id: e.userId } } })) + /* case "new_invoice": + return orFail(this.dbs.FindOne('UserReceivingInvoice', { where: { invoice: e.data, user: { user_id: e.userId } } })) */ case 'new_address': return orFail(this.dbs.FindOne('UserReceivingAddress', { where: { address: e.data, user: { user_id: e.userId } } })) case 'invoice_paid':