user fixes

This commit is contained in:
Baris Soner Usakli
2014-01-16 16:50:41 -05:00
parent 08f97efcd4
commit 0b132cadcf
3 changed files with 17 additions and 22 deletions

View File

@@ -5,11 +5,7 @@ var user = require('../user'),
SocketUser.exists = function(socket, data, callback) {
if (data && data.username) {
user.exists(utils.slugify(data.username), function(exists) {
socket.emit('user.exists', {
exists: exists
});
});
user.exists(utils.slugify(data.username), callback);
}
};