diff options
Diffstat (limited to 'lib/solidus_subscriptions/processor.rb')
-rw-r--r-- | lib/solidus_subscriptions/processor.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/solidus_subscriptions/processor.rb b/lib/solidus_subscriptions/processor.rb index f95e16f..4c4894e 100644 --- a/lib/solidus_subscriptions/processor.rb +++ b/lib/solidus_subscriptions/processor.rb @@ -83,6 +83,7 @@ module SolidusSubscriptions subscriptions_by_id.fetch(user.id, []).map do |sub| ActiveRecord::Base.transaction do sub.advance_actionable_date + sub.cancel! if sub.pending_cancellation? sub.installments.create! end end |