This commit is contained in:
d-a-n 2012-10-05 13:46:15 -07:00
commit 838029b0fb

View file

@ -141,24 +141,6 @@ exports.getAuthor = function (author, callback)
db.get("globalAuthor:" + author, callback); db.get("globalAuthor:" + author, callback);
} }
/**
* Returns the Author Name of the author
* @param {String} author The id of the author
* @param {Function} callback callback(err, name)
*/
exports.getAuthorName = function (authorID, callback)
{
db.getSub("globalAuthor:" + author, ["name"], callback);
console.log(authorID);
db.getSub("globalAuthor:" + authorID, ["name"], function(err, authorName){
if(ERR(err, callback)) return;
callback(null, {authorName: authorName});
});
}
/** /**
* Returns the color Id of the author * Returns the color Id of the author
* @param {String} author The id of the author * @param {String} author The id of the author