From bdd42b219d364b7a87b58557fdbf1db948cbe1bf Mon Sep 17 00:00:00 2001 From: aeromechanic000 Date: Tue, 6 May 2025 17:23:35 +0800 Subject: [PATCH] return key instead of keys[name] --- README.md | 2 +- src/utils/keys.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f291c2f..df6b1e6 100644 --- a/README.md +++ b/README.md @@ -172,4 +172,4 @@ Some of the node modules that we depend on have bugs in them. To add a patch, ch Year = {2023}, url={https://github.com/kolbytn/mindcraft} } -``` +``` \ No newline at end of file diff --git a/src/utils/keys.js b/src/utils/keys.js index 745ae6c..af77c4d 100644 --- a/src/utils/keys.js +++ b/src/utils/keys.js @@ -16,7 +16,7 @@ export function getKey(name) { if (!key) { throw new Error(`API key "${name}" not found in keys.json or environment variables!`); } - return keys[name]; + return key; } export function hasKey(name) {