missing ;

v1.18.x
barisusakli 11 years ago
parent 3d6cce44c7
commit 7873b90caf

@ -10,9 +10,7 @@ var db = require('./database'),
(function(Messaging) { (function(Messaging) {
function sortUids(fromuid, touid) { function sortUids(fromuid, touid) {
var uids = [fromuid, touid]; return [fromuid, touid].sort();
uids.sort();
return uids;
} }
Messaging.addMessage = function(fromuid, touid, content, callback) { Messaging.addMessage = function(fromuid, touid, content, callback) {
@ -126,12 +124,12 @@ var db = require('./database'),
user.getMultipleUserFields(uids, ['username', 'picture', 'uid'], function(err, users) { user.getMultipleUserFields(uids, ['username', 'picture', 'uid'], function(err, users) {
if (err) { if (err) {
return callback(err) return callback(err);
} }
users = users.filter(function(user) { users = users.filter(function(user) {
return !!user.uid; return !!user.uid;
}) });
callback(null, users); callback(null, users);
}); });

Loading…
Cancel
Save