diff --git a/plugins/hermes-achievements/dashboard/dist/index.js b/plugins/hermes-achievements/dashboard/dist/index.js index 4fa9bd08065..001b688a94a 100644 --- a/plugins/hermes-achievements/dashboard/dist/index.js +++ b/plugins/hermes-achievements/dashboard/dist/index.js @@ -51,8 +51,9 @@ async function api(path, options) { const url = "/api/plugins/hermes-achievements" + path; const token = window.__HERMES_SESSION_TOKEN__ || ""; - const headers = { ...(options?.headers || {}), Authorization: `Bearer ${token}` }; - const res = await fetch(url, { ...options, headers }); + const headers = { ...((options && options.headers) || {}) }; + if (token) headers["X-Hermes-Session-Token"] = token; + const res = await fetch(url, { ...(options || {}), headers }); if (!res.ok) { const text = await res.text().catch(function () { return res.statusText; }); throw new Error(res.status + ": " + text); diff --git a/scripts/release.py b/scripts/release.py index 2b421399c33..222f95a8d61 100755 --- a/scripts/release.py +++ b/scripts/release.py @@ -54,6 +54,7 @@ AUTHOR_MAP = { "cleo@edaphic.xyz": "curiouscleo", "hirokazu.ogawa@kwansei.ac.jp": "hrkzogw", "datapod.k@gmail.com": "dandacompany", + "treydong.zh@gmail.com": "TreyDong", "127238744+teknium1@users.noreply.github.com": "teknium1", "128259593+Gutslabs@users.noreply.github.com": "Gutslabs", "50326054+nocturnum91@users.noreply.github.com": "nocturnum91",