This commit is contained in:
parent
9ec3f4655e
commit
46124f7f15
|
@ -8,7 +8,7 @@ namespace :import_from_chandao do
|
||||||
|
|
||||||
http = Net::HTTP.new(url.host, url.port);
|
http = Net::HTTP.new(url.host, url.port);
|
||||||
request = Net::HTTP::Post.new(url)
|
request = Net::HTTP::Post.new(url)
|
||||||
request["Cookie"] = "autologin_trustie=#{Token.get_or_create_permanent_login_token(assigner, 'autologin')}"
|
request["Cookie"] = "autologin_trustie=#{Token.get_or_create_permanent_login_token(assigner, 'autologin')&.value}"
|
||||||
request["Content-Type"] = "application/json"
|
request["Content-Type"] = "application/json"
|
||||||
request.body = JSON.dump({
|
request.body = JSON.dump({
|
||||||
"pmsProjectId": pm_project_id,
|
"pmsProjectId": pm_project_id,
|
||||||
|
|
Loading…
Reference in New Issue