diff --git a/src/routes/provision.js b/src/routes/provision.js index 9a17910d6..29ec0d483 100644 --- a/src/routes/provision.js +++ b/src/routes/provision.js @@ -102,7 +102,7 @@ function restore(req, res, next) { if (typeof backupConfig.format !== 'string') return next(new HttpError(400, 'format must be a string')); if ('acceptSelfSignedCerts' in backupConfig && typeof backupConfig.acceptSelfSignedCerts !== 'boolean') return next(new HttpError(400, 'format must be a boolean')); - if (typeof req.body.backupId !== 'string') return next(new HttpError(400, 'backupId must be a string or null')); + if (typeof req.body.backupId !== 'string') return next(new HttpError(400, 'backupId must be a string')); if (typeof req.body.version !== 'string') return next(new HttpError(400, 'version must be a string')); if ('sysinfoConfig' in req.body && typeof req.body.sysinfoConfig !== 'object') return next(new HttpError(400, 'sysinfoConfig must be an object'));