Skip to content

Commit

Permalink
FIX: Remove auth token from task alignment csv upload
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed May 13, 2021
1 parent 3d9a5cf commit a6aae03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api/models/task-alignment.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ angular.module("doubtfire.api.models.task-alignment", [])
TaskAlignment = {}
TaskAlignment.taskAlignmentCSVUploadUrl = (unit, project_id) ->
if project_id?
"#{DoubtfireConstants.API_URL}/units/#{unit.id}/learning_alignments/csv.json?project_id=#{project_id}&auth_token=#{currentUser.authenticationToken}"
"#{DoubtfireConstants.API_URL}/units/#{unit.id}/learning_alignments/csv.json?project_id=#{project_id}"
else
"#{DoubtfireConstants.API_URL}/units/#{unit.id}/learning_alignments/csv.json?auth_token=#{currentUser.authenticationToken}"
"#{DoubtfireConstants.API_URL}/units/#{unit.id}/learning_alignments/csv.json"

TaskAlignment.downloadCSV = (unit, project_id) ->
if project_id?
Expand Down

0 comments on commit a6aae03

Please sign in to comment.