diff --git a/lib/apiKeyManager.js b/lib/apiKeyManager.js index 3057ce4..868519c 100644 --- a/lib/apiKeyManager.js +++ b/lib/apiKeyManager.js @@ -46,7 +46,7 @@ return Promise.resolve(`Key [${key}] added`); } -async function updateKey(key, opts) { +async function update(key, opts) { if (!getKey(key)) { return Promise.reject(new Error(`Key [${key}] doesn't exists`)); } @@ -122,5 +122,5 @@ generateKey, getKeys, getKey, - updateKey, + update, };