import: acceptSelfSignedCerts is validated at provider

This commit is contained in:
Girish Ramakrishnan
2024-04-09 13:24:33 +02:00
parent 3f2f4c7c6b
commit 62faf616c5
2 changed files with 5 additions and 6 deletions

View File

@@ -540,7 +540,6 @@ async function importApp(req, res, next) {
if (typeof backupConfig.provider !== 'string') return next(new HttpError(400, 'provider is required'));
if ('password' in backupConfig && typeof backupConfig.password !== 'string') return next(new HttpError(400, 'password must be a string'));
if ('encryptedFilenames' in backupConfig && typeof backupConfig.encryptedFilenames !== 'boolean') return next(new HttpError(400, 'encryptedFilenames must be a boolean'));
if ('acceptSelfSignedCerts' in backupConfig && typeof backupConfig.acceptSelfSignedCerts !== 'boolean') return next(new HttpError(400, 'format must be a boolean'));
// testing backup config can take sometime
req.clearTimeout();