From f48c6993dd1df433498448b053461faf838d3877 Mon Sep 17 00:00:00 2001 From: gbuomprisco Date: Fri, 12 Jul 2024 14:32:10 +0800 Subject: [PATCH] Update interval count in lemon-squeezy-webhook-handler The interval count value for yearly subscriptions in the lemon-squeezy-webhook-handler service has been corrected. It was previously set to 12, which inaccurately represented a monthly subscription, so it has been updated to reflect the correct annual figure of 1. --- .../src/services/lemon-squeezy-webhook-handler.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/billing/lemon-squeezy/src/services/lemon-squeezy-webhook-handler.service.ts b/packages/billing/lemon-squeezy/src/services/lemon-squeezy-webhook-handler.service.ts index 0864da2c4..5f18ba4f0 100644 --- a/packages/billing/lemon-squeezy/src/services/lemon-squeezy-webhook-handler.service.ts +++ b/packages/billing/lemon-squeezy/src/services/lemon-squeezy-webhook-handler.service.ts @@ -441,6 +441,6 @@ function getSubscriptionIntervalType(renewsAt: string) { return { interval: 'year', - intervalCount: 12, + intervalCount: 1, }; }