Skip to content

Commit

Permalink
Fix LemonSqueezy sync subscription method
Browse files Browse the repository at this point in the history
  • Loading branch information
itsameandrea authored Oct 11, 2024
1 parent e0f5a81 commit 1ab9a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/pay/lemon_squeezy/subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1ab9a51

Please sign in to comment.