From 16c4c33f49d5fb3e4fa0124e4d59c0ccce42dfde Mon Sep 17 00:00:00 2001 From: Ray Bellis Date: Fri, 25 Jan 2019 13:37:24 +0000 Subject: [PATCH] db/AuthorManager.js: renamed doesAuthorExists() -> doesAuthorExist() Removed the 's' for consistency with the other `doesFooExist()` manager calls. Retained an alias for plugins that might be using it. --- src/node/db/AuthorManager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/node/db/AuthorManager.js b/src/node/db/AuthorManager.js index 0db187706..0676b1b8a 100644 --- a/src/node/db/AuthorManager.js +++ b/src/node/db/AuthorManager.js @@ -40,7 +40,7 @@ exports.getColorPalette = function() { /** * Checks if the author exists */ -exports.doesAuthorExists = thenify(function(authorID, callback) +exports.doesAuthorExist = thenify(function(authorID, callback) { // check if the database entry of this author exists db.get("globalAuthor:" + authorID, function(err, author) { @@ -50,6 +50,9 @@ exports.doesAuthorExists = thenify(function(authorID, callback) }); }); +/* exported for backwards compatibility */ +exports.doesAuthorExists = exports.doesAuthorExist; + /** * Returns the AuthorID for a token. * @param {String} token The token