pass uid to getUsers and getUsersFromSets

This commit is contained in:
barisusakli
2015-01-29 17:02:20 -05:00
parent 6ebc048f1f
commit b54f2de504
10 changed files with 27 additions and 23 deletions

View File

@@ -66,7 +66,8 @@ SocketUser.search = function(socket, data, callback) {
page: data.page,
searchBy: data.searchBy,
sortBy: data.sortBy,
filterBy: data.filterBy
filterBy: data.filterBy,
uid: socket.uid
}, callback);
};
@@ -332,7 +333,7 @@ SocketUser.loadMore = function(socket, data, callback) {
var start = parseInt(data.after, 10),
end = start + 19;
user.getUsersFromSet(data.set, start, end, function(err, userData) {
user.getUsersFromSet(data.set, socket.uid, start, end, function(err, userData) {
if (err) {
return callback(err);
}