summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/solidus_subscriptions/subscription.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/solidus_subscriptions/subscription.rb b/app/models/solidus_subscriptions/subscription.rb
index 8d8dbf4..e9e2438 100644
--- a/app/models/solidus_subscriptions/subscription.rb
+++ b/app/models/solidus_subscriptions/subscription.rb
@@ -154,7 +154,8 @@ module SolidusSubscriptions
# eligible to be processed.
def next_actionable_date
return nil unless active?
- (actionable_date || Time.zone.now) + interval
+ new_date = (actionable_date || Time.zone.now)
+ (new_date + interval).beginning_of_minute
end
# Advance the actionable date to the next_actionable_date value. Will modify