return key instead of keys[name]

This commit is contained in:
aeromechanic000 2025-05-06 17:23:35 +08:00
parent 4a19f72e75
commit bdd42b219d
2 changed files with 2 additions and 2 deletions

View file

@ -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) {