Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update query again
update query again
eajeanes committed Aug 24, 2018
1 parent d9a2d7e commit 2defed6
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 not Type 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 2defed6

Please sign in to comment.