From f62b476bb92daeea63ee8aaa0b49d75f9b1afd5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Wed, 19 Nov 2025 11:50:32 +0800 Subject: [PATCH] chore: add missing logging on transaction_created event --- packages/orb-sync-lib/src/orb-sync.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/orb-sync-lib/src/orb-sync.ts b/packages/orb-sync-lib/src/orb-sync.ts index ca9644c..feedbcb 100644 --- a/packages/orb-sync-lib/src/orb-sync.ts +++ b/packages/orb-sync-lib/src/orb-sync.ts @@ -136,6 +136,8 @@ export class OrbSync { case 'customer.balance_transaction_created': { const webhook = parsedData as CustomerWebhook; + this.config.logger?.info(`Received webhook ${webhook.id}: ${webhook.type} for customer ${webhook.customer.id}`); + // Orb ocassionally sends multiple credit notes with the same timestamp at roughly the same time - this leads to possibly persisting an old customer balance // To prevent this, we will query the Orb customer via API to get the latest state const customer = await this.orb.customers.fetch(webhook.customer.id);