mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 11:42:36 +01:00
getUser get->read
This commit is contained in:
parent
ecd5b4b23c
commit
bd2d0a8953
@ -27,7 +27,7 @@ var api = function(dbot) {
|
||||
|
||||
// Return a user record given a UUID
|
||||
'getUser': function(uuid, callback) {
|
||||
this.db.get('users', uuid, function(err, user) {
|
||||
this.db.read('users', uuid, function(err, user) {
|
||||
if(err) user = false;
|
||||
callback(user);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user