From 964fb5d251f7ba85d087d9a6d33af19e8abfdbe3 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 2 Dec 2025 15:16:21 +0100 Subject: [PATCH] typo --- src/routes/provision.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'));