Skip to content

Commit

Permalink
ステージング環境で休会できるようにした
Browse files Browse the repository at this point in the history
ステージング環境ではStripe関連が動かないようにした
  • Loading branch information
komagata committed Dec 15, 2024
1 parent e68e617 commit b4fbd1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/hibernation_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def update_hibernated_at!
end

def destroy_subscription!
return nil unless Rails.env.production?
return nil if !Rails.env.production? || staging?

Subscription.new.destroy(current_user.subscription_id) if current_user.subscription_id
end
Expand Down

0 comments on commit b4fbd1f

Please sign in to comment.