groups.create() now needs source argument
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user