Skip to content

Commit

Permalink
updated RegMeetingOptionAssociation.where to return [] when it's blank
Browse files Browse the repository at this point in the history
  • Loading branch information
ij committed Jun 30, 2022
1 parent 369124c commit baebfb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sf/reg_meeting_option_association.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def self.find_all_by_event_id(event_id)
def self.where(args = {})
where = args.map { |k, v| "#{k} = \'#{v}\'" }.join(' and ')
sobjects = Sf.client.query("select Id, Name from RegMeetingOptionAssociation__c where #{where}")
build_collection sobjects unless sobjects.blank?
sobjects.blank? ? [] : build_collection(sobjects)
end

def self.find_all_by_meeting_id(meeting_id)
Expand Down
2 changes: 1 addition & 1 deletion lib/sf/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Sf
VERSION = "0.1.66"
VERSION = "0.1.67"
end

0 comments on commit baebfb8

Please sign in to comment.