Skip to content

Commit

Permalink
Fix default asana headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Sep 15, 2024
1 parent 9eb839e commit d32bae2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.extract_asana_task_id(task_url)
def self.extract_asana_task_assignee(task_id, asana_access_token)
client = Asana::Client.new do |c|
c.authentication(:access_token, asana_access_token)
c.default_headers["Asana-Enable"] = "new_goal_memberships"
c.default_headers("Asana-Enable" => "new_goal_memberships")
end

begin
Expand All @@ -58,7 +58,7 @@ def self.get_release_automation_subtask_id(task_url, asana_access_token)

asana_client = Asana::Client.new do |c|
c.authentication(:access_token, asana_access_token)
c.default_headers["Asana-Enable"] = "new_goal_memberships"
c.default_headers("Asana-Enable" => "new_goal_memberships")
end

begin
Expand Down Expand Up @@ -93,7 +93,7 @@ def self.get_asana_user_id_for_github_handle(github_handle)
def self.upload_file_to_asana_task(task_id, file_path, asana_access_token)
asana_client = Asana::Client.new do |c|
c.authentication(:access_token, asana_access_token)
c.default_headers["Asana-Enable"] = "new_goal_memberships"
c.default_headers("Asana-Enable" => "new_goal_memberships")
end

begin
Expand Down

0 comments on commit d32bae2

Please sign in to comment.