make the tests work
This commit is contained in:
@@ -63,10 +63,10 @@ async function updateMembers(req, res, next) {
|
||||
}
|
||||
|
||||
async function list(req, res, next) {
|
||||
const [error, groups] = await safe(groups.getAllWithMembers());
|
||||
const [error, result] = await safe(groups.listWithMembers());
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(200, { groups }));
|
||||
next(new HttpSuccess(200, { groups: result }));
|
||||
}
|
||||
|
||||
async function remove(req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user