From aa6923be3e86d310d62ea219cd5e544bc4061a98 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Sat, 13 Jul 2024 20:25:52 +0200 Subject: [PATCH] up --- src/services/main/applicationManager.ts | 2 -- src/services/storage/stateBundler.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/services/main/applicationManager.ts b/src/services/main/applicationManager.ts index 28a700b9..a75a591c 100644 --- a/src/services/main/applicationManager.ts +++ b/src/services/main/applicationManager.ts @@ -179,9 +179,7 @@ export default class { const receiver = await this.storage.applicationStorage.GetApplicationUser(app, req.receiver_identifier) const { user: payer } = await this.storage.applicationStorage.GetOrCreateApplicationUser(app, req.payer_identifier, 0) const opts: InboundOptionals = { callbackUrl: req.http_callback_url, expiry: defaultInvoiceExpiry, expectedPayer: payer.user, linkedApplication: app } - log("generating invoice...") const appUserInvoice = await this.paymentManager.NewInvoice(receiver.user.user_id, req.invoice_req, opts) - log(receiver.identifier, "invoice created to be paid by", payer.identifier) return { invoice: appUserInvoice.invoice } diff --git a/src/services/storage/stateBundler.ts b/src/services/storage/stateBundler.ts index 4884b47c..dab2a215 100644 --- a/src/services/storage/stateBundler.ts +++ b/src/services/storage/stateBundler.ts @@ -72,11 +72,11 @@ export class StateBundler { const { used, from, timeDiscount } = settings const meta = settings.meta || [] const key = [actionName, from, used, ...meta].join('_') - this.increment(key, v) if (timeDiscount) { this.totalSatsForDiscount += v } - this.smallLogEvent(actionName, from) + this.increment(key, v) + //this.smallLogEvent(actionName, from) } AddTxPointFailed = (actionName: TransactionStatePointType, v: number, settings: TxPointSettings) => {