aboutsummaryrefslogtreecommitdiff
path: root/build/constants.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-06-29 17:54:50 -0500
committermat <github@matdoes.dev>2021-06-29 17:54:50 -0500
commit49ff24343e1c964b6cb82fdf76957ffd2f27d049 (patch)
tree820a3668e21dffc7eefa53630944412d9d97a129 /build/constants.js
parent758ca15277daa11ce1ec86ce7f07ea7beee9eb8f (diff)
parentc0c534dafb54ebf9f95a5054f576ad99de29f232 (diff)
downloadskyblock-api-49ff24343e1c964b6cb82fdf76957ffd2f27d049.tar.gz
skyblock-api-49ff24343e1c964b6cb82fdf76957ffd2f27d049.tar.bz2
skyblock-api-49ff24343e1c964b6cb82fdf76957ffd2f27d049.zip
Merge branch 'main' of https://github.com/skyblockstats/skyblock-api into main
Diffstat (limited to 'build/constants.js')
-rw-r--r--build/constants.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/constants.js b/build/constants.js
index 22327c5..414a6c5 100644
--- a/build/constants.js
+++ b/build/constants.js
@@ -57,7 +57,7 @@ async function fetchGithubApi(method, route, headers, json) {
console.debug('fetching github api', method, route);
const data = await node_fetch_1.default(githubApiBase + route, {
agent: () => httpsAgent,
- body: json ? JSON.stringify(json) : null,
+ body: json ? JSON.stringify(json) : undefined,
method,
headers: Object.assign({
'Authorization': `token ${process.env.github_token}`