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,