Commit 3e6b6675 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

typoe in assert

parent f78571e4
......@@ -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');
......
......@@ -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 }));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment