Update interval values in lemon-squeezy-webhook-handler

Changed the 'monthly' interval value to 'month' and the 'yearly' interval to 'year'. This change improves code consistency and alignment with the expected format for interval values.
This commit is contained in:
gbuomprisco
2024-07-03 10:49:05 +08:00
parent 6cdb46ea44
commit d155940df2

View File

@@ -435,13 +435,13 @@ function getSubscriptionIntervalType(renewsAt: string) {
if (daysDifference <= 32) {
return {
interval: 'monthly',
interval: 'month',
intervalCount: 1,
};
}
return {
interval: 'yearly',
interval: 'year',
intervalCount: 12,
};
}