Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
updated RegMeetingOptionAssociation.where to return [] when it's blank
ij committed Jun 30, 2022
1 parent 369124c commit baebfb8
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sf/reg_meeting_option_association.rb
@@ -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)
2 changes: 1 addition & 1 deletion lib/sf/version.rb
@@ -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.