Fix issues with Lemon Squeezy and i18n issue requiring a parameter we do not pass.
This commit is contained in:
@@ -132,13 +132,6 @@ export class LemonSqueezyWebhookHandlerService
|
||||
);
|
||||
}
|
||||
|
||||
case 'subscription_payment_success': {
|
||||
return this.handleInvoicePaid(
|
||||
event as SubscriptionWebhook,
|
||||
params.onInvoicePaid,
|
||||
);
|
||||
}
|
||||
|
||||
default: {
|
||||
const logger = await getLogger();
|
||||
|
||||
@@ -287,18 +280,6 @@ export class LemonSqueezyWebhookHandlerService
|
||||
);
|
||||
}
|
||||
|
||||
private handleInvoicePaid(
|
||||
subscription: SubscriptionWebhook,
|
||||
onInvoicePaidCallback: (
|
||||
subscription: UpsertSubscriptionParams,
|
||||
) => Promise<unknown>,
|
||||
) {
|
||||
return this.handleSubscriptionCreatedEvent(
|
||||
subscription,
|
||||
onInvoicePaidCallback,
|
||||
);
|
||||
}
|
||||
|
||||
private handleSubscriptionDeletedEvent(
|
||||
subscription: SubscriptionWebhook,
|
||||
onSubscriptionDeletedCallback: (subscriptionId: string) => Promise<unknown>,
|
||||
|
||||
Reference in New Issue
Block a user