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