From 46124f7f15672844c5c59c85d5e5ce7cae7ab8eb Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 3 Sep 2024 10:49:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/import_issues_from_chandao.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/import_issues_from_chandao.rake b/lib/tasks/import_issues_from_chandao.rake index d8cc4b89d..b4b799fc0 100644 --- a/lib/tasks/import_issues_from_chandao.rake +++ b/lib/tasks/import_issues_from_chandao.rake @@ -8,7 +8,7 @@ namespace :import_from_chandao do http = Net::HTTP.new(url.host, url.port); 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.body = JSON.dump({ "pmsProjectId": pm_project_id,