lib/checkoff/task_searches.rb in checkoff-0.193.0 vs lib/checkoff/task_searches.rb in checkoff-0.194.0
- old
+ new
@@ -191,13 +191,11 @@
# @param [Array<String>] extra_fields
# @return [Hash<Symbol, Object>]
def calculate_api_options(extra_fields)
# @type [Hash<Symbol, Object>]
- options = projects.task_options[:options]
- options[:fields] += ['custom_fields']
- options[:fields] += extra_fields
- options
+ all_options = projects.task_options(extra_fields: ['custom_fields'] + extra_fields)
+ all_options[:options]
end
# bundle exec ./task_searches.rb
# :nocov:
class << self