Revert "apptask: backupId/format is not part of install anymore"

This reverts commit 49e5c60422.
This commit is contained in:
Girish Ramakrishnan
2019-10-11 20:21:32 -07:00
parent eb5c2ed30b
commit ad13445c93
2 changed files with 13 additions and 4 deletions

View File

@@ -121,6 +121,9 @@ function installApp(req, res, next) {
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 (data.backupId && typeof data.backupId !== 'string') return next(new HttpError(400, 'backupId must be string or null'));
if (data.backupFormat && typeof data.backupFormat !== 'string') return next(new HttpError(400, 'backupFormat must be string or null'));
if ('label' in data && typeof data.label !== 'string') return next(new HttpError(400, 'label must be a string'));
// falsy values in cert and key unset the cert