Skip to content

Commit

Permalink
Fix batch requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Oct 1, 2024
1 parent 9238417 commit 80cde91
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def self.move_tasks_to_section(task_ids, section_id, asana_access_token)
}
end
UI.message("Moving tasks #{batch.join(', ')} to section: #{section_id}")
asana_client.create_batch_request({ actions: actions })
asana_client.batch_apis.create_batch_request({ actions: actions })
end
end

Expand Down Expand Up @@ -231,7 +231,7 @@ def self.tag_tasks(tag_id, task_ids, asana_access_token)
}
end
UI.message("Tagging tasks #{batch.join(', ')}")
asana_client.create_batch_request({ actions: actions })
asana_client.batch_apis.create_batch_request({ actions: actions })
end
end

Expand Down

0 comments on commit 80cde91

Please sign in to comment.