diff --git a/lib/sf/account.rb b/lib/sf/account.rb index 113d5c7..5fea935 100644 --- a/lib/sf/account.rb +++ b/lib/sf/account.rb @@ -138,7 +138,7 @@ def self.cert_service_subscribers Supporting_Institution__r.InCommon_Participant_Type__c, Supporting_Institution__r.InCommon_Weblink__c from Service_Institution__c where Service__r.Name = \'InCommon Certificate Service\' - and (Service_End_Date__c = null or Service_End_Date__c ='') + and Service_End_Date__c = null and (Type_of_Support__c = 'Subscriber' or Type_of_Support__c = 'Subscriber Parent') and Do_Not_Publish__c <> true") build_collection sobjects.map(&:Supporting_Institution__r) unless sobjects.blank?