Skip to content

Commit 96fb376

Browse files
committed
Ensure that "opt out" pull completes if Spoke subscription ID is not configured
1 parent 0b14efc commit 96fb376

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/identity_spoke.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ def self.fetch_new_opt_outs(sync_id, force: false)
269269
},
270270
false
271271
)
272+
else
273+
Rails.logger.warn "#{SYSTEM_NAME.titleize} #{sync_id}: No subscription id configured, cannot import opt outs"
274+
yield 0, {}, {}, false
272275
end
273276
end
274277

0 commit comments

Comments
 (0)