From 1ab9a51247fe17db59e5acce9c2320055ed8a5a4 Mon Sep 17 00:00:00 2001 From: Andrea Rocca Date: Fri, 11 Oct 2024 07:30:40 +0200 Subject: [PATCH] Fix LemonSqueezy sync subscription method --- app/models/pay/lemon_squeezy/subscription.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/pay/lemon_squeezy/subscription.rb b/app/models/pay/lemon_squeezy/subscription.rb index bd42b32e..90f4f932 100644 --- a/app/models/pay/lemon_squeezy/subscription.rb +++ b/app/models/pay/lemon_squeezy/subscription.rb @@ -9,7 +9,7 @@ def self.sync(subscription_id, object: nil, name: Pay.default_product_name) attributes = { current_period_end: object.renews_at, - ends_at: (object.ends_at ? Time.parse(object..ends_at) : nil), + ends_at: (object.ends_at ? Time.parse(object.ends_at) : nil), pause_starts_at: (object.pause&.resumes_at ? Time.parse(object.pause.resumes_at) : nil), status: object.status, processor_plan: object.first_subscription_item.price_id,