getUser get->read

This commit is contained in:
Sam Nicholls 2013-04-20 20:40:30 +02:00
parent ecd5b4b23c
commit bd2d0a8953

View File

@ -27,7 +27,7 @@ var api = function(dbot) {
// Return a user record given a UUID // Return a user record given a UUID
'getUser': function(uuid, callback) { 'getUser': function(uuid, callback) {
this.db.get('users', uuid, function(err, user) { this.db.read('users', uuid, function(err, user) {
if(err) user = false; if(err) user = false;
callback(user); callback(user);
}); });