lib/todoist/misc/items.rb in todoist-ruby-0.2.4 vs lib/todoist/misc/items.rb in todoist-ruby-0.2.5
- old
+ new
@@ -27,10 +27,10 @@
labels_param = labels.collect { |label| label.id }
params["labels"] = labels_param.to_json
optional_params.delete("labels")
end
- params.merge(optional_params)
+ params.merge!(optional_params)
result = @client.api_helper.get_response(Config::TODOIST_ITEMS_ADD_COMMAND, params)
item = ParseHelper.make_object(result)
return item
end