admin/manage/groups pagination

This commit is contained in:
Barış Soner Uşaklı
2015-07-09 14:01:06 -04:00
parent 1602b378e3
commit a12ecbc230
7 changed files with 86 additions and 15 deletions

View File

@@ -219,7 +219,7 @@ SocketGroups.search = function(socket, data, callback) {
if (!data) {
return callback(null, []);
}
data.options = data.options || {};
if (!data.query) {
var groupsPerPage = 15;
groupsController.getGroupsFromSet(socket.uid, data.options.sort, 0, groupsPerPage - 1, function(err, data) {