mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
closes #3242
This commit is contained in:
@@ -332,7 +332,7 @@ var async = require('async'),
|
||||
|
||||
User.getUidByUsername = function(username, callback) {
|
||||
if (!username) {
|
||||
return callback();
|
||||
return callback(null, 0);
|
||||
}
|
||||
db.sortedSetScore('username:uid', username, callback);
|
||||
};
|
||||
@@ -343,7 +343,7 @@ var async = require('async'),
|
||||
|
||||
User.getUidByUserslug = function(userslug, callback) {
|
||||
if (!userslug) {
|
||||
return callback();
|
||||
return callback(null, 0);
|
||||
}
|
||||
db.sortedSetScore('userslug:uid', userslug, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user