mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Return early if OC is closed
This commit is contained in:
@@ -275,7 +275,7 @@ class OrderCycle < ApplicationRecord
|
||||
private
|
||||
|
||||
def sync_subscriptions
|
||||
return unless schedule_ids.any?
|
||||
return unless open? && schedule_ids.any?
|
||||
|
||||
subscriptions = Subscription.where(schedule_id: schedule_ids)
|
||||
syncer = OrderManagement::Subscriptions::ProxyOrderSyncer.new(subscriptions)
|
||||
|
||||
Reference in New Issue
Block a user