From 789f5c06b8a77388c477cda4964d75382a86e1ef Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 18 May 2022 19:09:35 +0000 Subject: fix lead --- src/cleaners/skyblock/itemId.ts | 1 + src/constants.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cleaners/skyblock/itemId.ts b/src/cleaners/skyblock/itemId.ts index 027a74b..f059233 100644 --- a/src/cleaners/skyblock/itemId.ts +++ b/src/cleaners/skyblock/itemId.ts @@ -110,6 +110,7 @@ const ITEMS = { 'grilled_pork': 'cooked_porkchop', 'glistering_melon': 'glistering_melon_slice', 'cactus_green': 'green_dye', + 'leash': 'lead', 'enchanted_lapis_lazuli': 'enchanted_lapis_lazuli', 'enchanted_potato': 'enchanted_potato', diff --git a/src/constants.ts b/src/constants.ts index a112c96..b8761b7 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -44,7 +44,7 @@ async function fetchGithubApi(method: string, route: string, headers?: any, json body: json ? JSON.stringify(json) : undefined, method, headers: Object.assign({ - 'Authorization': `token ${process.env.github_token}` + 'Authorization': process.env.github_token ? `token ${process.env.github_token}` : undefined }, headers), } ) -- cgit