diff --git a/src/routes/apps.js b/src/routes/apps.js index 9fdb6315e..5fc167fce 100644 --- a/src/routes/apps.js +++ b/src/routes/apps.js @@ -248,7 +248,7 @@ function updateApp(req, res, next) { var data = req.body; if (!data.manifest || typeof data.manifest !== 'object') return next(new HttpError(400, 'manifest is required')); - if (('portBindings' in data) && typeof data.portBindings !== 'object') return next(new HttpError(400, 'portBindings must be an object')); + if ('portBindings' in data && typeof data.portBindings !== 'object') return next(new HttpError(400, 'portBindings must be an object')); if ('icon' in data && typeof data.icon !== 'string') return next(new HttpError(400, 'icon is not a string')); if ('force' in data && typeof data.force !== 'boolean') return next(new HttpError(400, 'force must be a boolean'));