make all tests work after group changes

This commit is contained in:
girish@cloudron.io
2016-02-09 09:37:12 -08:00
parent 199eb2b3e1
commit e752949752
8 changed files with 48 additions and 31 deletions

View File

@@ -222,7 +222,7 @@ function removeUser(userId, callback) {
function listUsers(callback) {
assert.strictEqual(typeof callback, 'function');
userdb.getAll(function (error, result) {
userdb.getAllWithGroupIds(function (error, result) {
if (error) return callback(new UserError(UserError.INTERNAL_ERROR, error));
var allUsers = result.map(function (obj) {