diff --git a/src/apps.js b/src/apps.js index c255f3792..6e39b6014 100644 --- a/src/apps.js +++ b/src/apps.js @@ -1222,7 +1222,7 @@ function setDataDir(app, dataDir, auditSource, callback) { function update(app, data, auditSource, callback) { assert.strictEqual(typeof app, 'object'); assert(data && typeof data === 'object'); - assert.strictEqual(data.manifest && typeof data.manifest === 'object'); + assert(data.manifest && typeof data.manifest === 'object'); assert.strictEqual(typeof auditSource, 'object'); assert.strictEqual(typeof callback, 'function'); diff --git a/src/routes/apps.js b/src/routes/apps.js index 3d685ea01..74df60d58 100644 --- a/src/routes/apps.js +++ b/src/routes/apps.js @@ -533,7 +533,7 @@ function update(req, res, next) { data.appStoreId = appStoreId; data.manifest = manifest; - apps.update(req.resource, req.body, auditSource.fromRequest(req), function (error, result) { + apps.update(req.resource, data, auditSource.fromRequest(req), function (error, result) { if (error) return next(BoxError.toHttpError(error)); next(new HttpSuccess(202, { taskId: result.taskId }));