mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +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
|
// 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);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user