From d7532a7a55aed9b1811a72439a1dc1c9e7a055a0 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Fri, 12 Sep 2025 17:12:02 +0000 Subject: [PATCH] deb --- src/services/storage/paymentStorage.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/storage/paymentStorage.ts b/src/services/storage/paymentStorage.ts index 2c2d58e2..d7985523 100644 --- a/src/services/storage/paymentStorage.ts +++ b/src/services/storage/paymentStorage.ts @@ -380,7 +380,7 @@ export default class { } else if (!!to) { time.created_at = LessThanOrEqual(new Date(to * 1000)) } - + console.log("fetching db data") const [receivingInvoices, receivingAddresses, outgoingInvoices, outgoingTransactions, userToUser] = await Promise.all([ this.dbs.Find('UserReceivingInvoice', { where: { linkedApplication: q, ...time } }), this.dbs.Find('UserReceivingAddress', { where: { linkedApplication: q, ...time } }), @@ -388,9 +388,11 @@ export default class { this.dbs.Find('UserTransactionPayment', { where: { linkedApplication: q, ...time } }), this.dbs.Find('UserToUserPayment', { where: { linkedApplication: q, ...time } }) ]) + console.log("fetched db data 2") const receivingTransactions = await Promise.all(receivingAddresses.map(addr => this.dbs.Find('AddressReceivingTransaction', { where: { user_address: { serial_id: addr.serial_id }, ...time } }))) - return { + console.log("fetched db data 3") + return { receivingInvoices, receivingAddresses, receivingTransactions, outgoingInvoices, outgoingTransactions, userToUser