groups.create() now needs source argument

This commit is contained in:
Johannes Zellner
2020-06-04 14:17:56 +02:00
parent 812bdcd462
commit 42cbcc6ce3
6 changed files with 38 additions and 21 deletions

View File

@@ -20,7 +20,9 @@ function create(req, res, next) {
if (typeof req.body.name !== 'string') return next(new HttpError(400, 'name must be string'));
groups.create(req.body.name, function (error, group) {
var source = ''; // means local
groups.create(req.body.name, source, function (error, group) {
if (error) return next(BoxError.toHttpError(error));
var groupInfo = {