diff --git a/.github/workflows/update-topics.yaml b/.github/workflows/update-topics.yaml index ee1febcb4b..c4ba39b1a2 100644 --- a/.github/workflows/update-topics.yaml +++ b/.github/workflows/update-topics.yaml @@ -44,7 +44,7 @@ jobs: "Content-Type": "application/json", "Authorization": `Bearer ${TOKEN}`, }; - const res = await fetch(apiUrl, { + let res = await fetch(apiUrl, { method: "GET", headers, }); @@ -56,7 +56,7 @@ jobs: return; } - const res = await fetch(apiUrl, { + res = await fetch(apiUrl, { method: "PUT", body: { ...data,