diff --git a/app/controllers/discourse_subscriptions/user/subscriptions_controller.rb b/app/controllers/discourse_subscriptions/user/subscriptions_controller.rb index 7155db3..6eb661f 100644 --- a/app/controllers/discourse_subscriptions/user/subscriptions_controller.rb +++ b/app/controllers/discourse_subscriptions/user/subscriptions_controller.rb @@ -51,7 +51,7 @@ module DiscourseSubscriptions # we cancel but don't remove until the end of the period # full removal is done via webhooks begin - subscription = ::Stripe::Subscription.update(params[:id], { cancel_at_period_end: true, } ) + subscription = ::Stripe::Subscription.update(params[:id], { cancel_at_period_end: true, }) if subscription render_json_dump subscription