diff --git a/src/apps.js b/src/apps.js index 7709ede6c..17bc336a0 100644 --- a/src/apps.js +++ b/src/apps.js @@ -689,9 +689,8 @@ function validateLocations(locations, callback) { }); } -function install(data, user, auditSource, callback) { +function install(data, auditSource, callback) { assert(data && typeof data === 'object'); - assert(user && typeof user === 'object'); assert.strictEqual(typeof auditSource, 'object'); assert.strictEqual(typeof callback, 'function'); diff --git a/src/routes/apps.js b/src/routes/apps.js index 063fb7234..304efa7d2 100644 --- a/src/routes/apps.js +++ b/src/routes/apps.js @@ -133,7 +133,7 @@ function installApp(req, res, next) { if ('overwriteDns' in req.body && typeof req.body.overwriteDns !== 'boolean') return next(new HttpError(400, 'overwriteDns must be boolean')); - apps.install(data, req.user, auditSource.fromRequest(req), function (error, result) { + apps.install(data, auditSource.fromRequest(req), function (error, result) { if (error) return next(BoxError.toHttpError(error)); next(new HttpSuccess(202, { id: result.id, taskId: result.taskId }));