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.pull/3559/head
parent
70a045ad3c
commit
16c4c33f49
|
@ -40,7 +40,7 @@ exports.getColorPalette = function() {
|
||||||
/**
|
/**
|
||||||
* Checks if the author exists
|
* 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
|
// check if the database entry of this author exists
|
||||||
db.get("globalAuthor:" + authorID, function(err, author) {
|
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.
|
* Returns the AuthorID for a token.
|
||||||
* @param {String} token The token
|
* @param {String} token The token
|
||||||
|
|
Loading…
Reference in New Issue