Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update query
Update query
eajeanes committed Aug 24, 2018
1 parent 94f51e5 commit d9a2d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sf/opportunity.rb
@@ -35,7 +35,7 @@ def self.inc_participations(since_date=nil)
def self.cert_subscribers(since_date=nil)
since_date ||=Date.today
since = since_date.to_date.to_s
sobjects = Sf.client.query("select #{FIELDS_SELECT_STR} from Opportunity where Name like '%Certificate Service%' and Type not like '%Existing Business%' and IsWon = true and CloseDate >= #{since}")
sobjects = Sf.client.query("select #{FIELDS_SELECT_STR} from Opportunity where Name like '%Certificate Service%' and not Type like '%Existing Business%' and IsWon = true and CloseDate >= #{since}")
build_collection sobjects unless sobjects.blank?
end

0 comments on commit d9a2d7e

Please sign in to comment.