diff --git a/src/routes/provision.js b/src/routes/provision.js index b3e78d8fa..313fc2cef 100644 --- a/src/routes/provision.js +++ b/src/routes/provision.js @@ -111,7 +111,7 @@ async function restore(req, res, next) { const backupConfig = req.body.backupConfig; if (typeof backupConfig.provider !== 'string') return next(new HttpError(400, 'backupConfig.provider is required')); if (typeof backupConfig.format !== 'string') return next(new HttpError(400, 'backupConfig.format must be a string')); - if (typeof backupConfig.config !== 'object') return next(new HttpError(400, 'backupConfig.config must be a string')); + if (typeof backupConfig.config !== 'object') return next(new HttpError(400, 'backupConfig.config must be an object')); if ('encryptionPassword' in backupConfig && typeof backupConfig.encryptionPassword !== 'string') return next(new HttpError(400, 'backupConfig.encryptionPassword must be a string')); if ('encryptedFilenames' in req.body && typeof req.body.encryptedFilenames !== 'boolean') return next(new HttpError(400, 'backupConfig.encryptedFilenames must be a boolean'));