lib/todoist/sync/projects.rb in todoist-ruby-0.2.6 vs lib/todoist/sync/projects.rb in todoist-ruby-0.2.7

- old
+ new

@@ -13,13 +13,12 @@ # Add a project with a given hash of attributes and returns the project id def add(args) return @client.api_helper.add(args, "project_add") end - # Delete projects given an array of projects - def delete(projects) - project_ids = projects.collect { |project| project.id } - args = {ids: project_ids.to_json} + # Delete a project given a project id + def delete(project_id) + args = {id: project_id} return @client.api_helper.command(args, "project_delete") end # Archive projects given an array of projects def archive(projects) \ No newline at end of file