fix: payment link events tracker

This commit is contained in:
Ahmed Bouhuolia
2024-09-30 18:09:57 +02:00
parent 7ac6e0d349
commit 04fe65b176

View File

@@ -19,11 +19,11 @@ export class PaymentLinkEventsTracker extends EventSubscriber {
); );
} }
public handleTrackInvoicePublicLinkGeneratedEvent({ tenantId }) { public handleTrackInvoicePublicLinkGeneratedEvent = ({ tenantId }) => {
this.posthog.trackEvent({ this.posthog.trackEvent({
distinctId: `tenant-${tenantId}`, distinctId: `tenant-${tenantId}`,
event: INVOICE_PAYMENT_LINK_GENERATED, event: INVOICE_PAYMENT_LINK_GENERATED,
properties: {}, properties: {},
}); });
} };
} }