From bc63d8bdc6cc624e3167bac3e27a1d7f41f37bbf Mon Sep 17 00:00:00 2001 From: boufni95 Date: Fri, 12 Sep 2025 17:05:37 +0000 Subject: [PATCH] deb --- src/services/metrics/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/metrics/index.ts b/src/services/metrics/index.ts index caa5016f..9817d8dd 100644 --- a/src/services/metrics/index.ts +++ b/src/services/metrics/index.ts @@ -214,12 +214,15 @@ export default class Handler { } async GetAppMetrics(req: Types.AppsMetricsRequest, app: Application | null): Promise { + console.log("fetching app metrics") const totalFees = await this.storage.paymentStorage.GetTotalFeesPaidInApp(app) + console.log("fetching ops") const { receivingInvoices, receivingTransactions, outgoingInvoices, outgoingTransactions, receivingAddresses, userToUser } = await this.storage.paymentStorage.GetAppOperations(app, { from: req.from_unix, to: req.to_unix }) let totalReceived = 0 let totalSpent = 0 let unpaidInvoices = 0 let feesInRange = 0 + console.log("processing metrics") const operations: Types.UserOperation[] = [] receivingInvoices.forEach(i => { if (i.paid_at_unix > 0) {