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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user