Skip to content

Commit fdc91cb

Browse files
authored
chore: add missing logging on transaction_created event (#107)
1 parent 67bc06e commit fdc91cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/orb-sync-lib/src/orb-sync.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ export class OrbSync {
136136
case 'customer.balance_transaction_created': {
137137
const webhook = parsedData as CustomerWebhook;
138138

139+
this.config.logger?.info(`Received webhook ${webhook.id}: ${webhook.type} for customer ${webhook.customer.id}`);
140+
139141
// Orb ocassionally sends multiple credit notes with the same timestamp at roughly the same time - this leads to possibly persisting an old customer balance
140142
// To prevent this, we will query the Orb customer via API to get the latest state
141143
const customer = await this.orb.customers.fetch(webhook.customer.id);

0 commit comments

Comments
 (0)