make the tests work

This commit is contained in:
Girish Ramakrishnan
2021-06-29 09:44:16 -07:00
parent 31498afe39
commit ea430b255b
11 changed files with 461 additions and 371 deletions
+2 -2
View File
@@ -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) {