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.
This commit is contained in:
parent
70a045ad3c
commit
16c4c33f49
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue